浏览代码

[Docs] Modify encoder_update_user example to return false (#14541)

Dasky 3 年之前
父节点
当前提交
19e33b685f
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      docs/feature_encoders.md
  2. 1 1
      docs/ja/feature_encoders.md

+ 1 - 1
docs/feature_encoders.md

@@ -81,7 +81,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
             tap_code(KC_UP);
         }
     }
-    return true;
+    return false;
 }
 ```
 

+ 1 - 1
docs/ja/feature_encoders.md

@@ -76,7 +76,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
             tap_code(KC_UP);
         }
     }
-    return true;
+    return false;
 }
 ```