aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRustam Zagirov <rustam@zagirov.name>2020-07-31 17:58:55 +0300
committerGitHub <noreply@github.com>2020-07-31 15:58:55 +0100
commit5bd239e1c0db98a51ed04b86fa5b1abf2b276bfb (patch)
treea9e860be070b691699778a9bb615a7996eef6837
parent53b0ee3f7ee2dba467c1d7066f4e22bf77ae20bc (diff)
downloadqmk_firmware-5bd239e1c0db98a51ed04b86fa5b1abf2b276bfb.tar.gz
qmk_firmware-5bd239e1c0db98a51ed04b86fa5b1abf2b276bfb.zip
Remove unnecessary break after return from documentation (#9892)
-rw-r--r--docs/custom_quantum_functions.md2
-rw-r--r--docs/ja/custom_quantum_functions.md2
-rw-r--r--docs/ref_functions.md2
-rw-r--r--docs/zh-cn/custom_quantum_functions.md2
4 files changed, 3 insertions, 5 deletions
diff --git a/docs/custom_quantum_functions.md b/docs/custom_quantum_functions.md
index e15126c42..bf3a60377 100644
--- a/docs/custom_quantum_functions.md
+++ b/docs/custom_quantum_functions.md
@@ -454,7 +454,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
454 layer_state_set(layer_state); // then immediately update the layer color 454 layer_state_set(layer_state); // then immediately update the layer color
455 } 455 }
456 } 456 }
457 return false; break; 457 return false;
458 case RGB_MODE_FORWARD ... RGB_MODE_GRADIENT: // For any of the RGB codes (see quantum_keycodes.h, L400 for reference) 458 case RGB_MODE_FORWARD ... RGB_MODE_GRADIENT: // For any of the RGB codes (see quantum_keycodes.h, L400 for reference)
459 if (record->event.pressed) { //This disables layer indication, as it's assumed that if you're changing this ... you want that disabled 459 if (record->event.pressed) { //This disables layer indication, as it's assumed that if you're changing this ... you want that disabled
460 if (user_config.rgb_layer_change) { // only if this is enabled 460 if (user_config.rgb_layer_change) { // only if this is enabled
diff --git a/docs/ja/custom_quantum_functions.md b/docs/ja/custom_quantum_functions.md
index 96e2a4ab3..161d7e4b5 100644
--- a/docs/ja/custom_quantum_functions.md
+++ b/docs/ja/custom_quantum_functions.md
@@ -456,7 +456,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
456 layer_state_set(layer_state); // すぐにレイヤーの色を更新します 456 layer_state_set(layer_state); // すぐにレイヤーの色を更新します
457 } 457 }
458 } 458 }
459 return false; break; 459 return false;
460 case RGB_MODE_FORWARD ... RGB_MODE_GRADIENT: // 任意の RGB コード に対して(quantum_keycodes.h を見てください。400行目参照) 460 case RGB_MODE_FORWARD ... RGB_MODE_GRADIENT: // 任意の RGB コード に対して(quantum_keycodes.h を見てください。400行目参照)
461 if (record->event.pressed) { // これはレイヤー表示を無効にします。これを変更する場合は、無効にしたいだろうため。 461 if (record->event.pressed) { // これはレイヤー表示を無効にします。これを変更する場合は、無効にしたいだろうため。
462 if (user_config.rgb_layer_change) { // 有効な場合のみ 462 if (user_config.rgb_layer_change) { // 有効な場合のみ
diff --git a/docs/ref_functions.md b/docs/ref_functions.md
index 57f701d79..997c3fa2e 100644
--- a/docs/ref_functions.md
+++ b/docs/ref_functions.md
@@ -26,7 +26,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
26 update_tri_layer(_LOWER, _RAISE, _ADJUST); 26 update_tri_layer(_LOWER, _RAISE, _ADJUST);
27 } 27 }
28 return false; 28 return false;
29 break;
30 case RAISE: 29 case RAISE:
31 if (record->event.pressed) { 30 if (record->event.pressed) {
32 layer_on(_RAISE); 31 layer_on(_RAISE);
@@ -36,7 +35,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
36 update_tri_layer(_LOWER, _RAISE, _ADJUST); 35 update_tri_layer(_LOWER, _RAISE, _ADJUST);
37 } 36 }
38 return false; 37 return false;
39 break;
40 } 38 }
41 return true; 39 return true;
42} 40}
diff --git a/docs/zh-cn/custom_quantum_functions.md b/docs/zh-cn/custom_quantum_functions.md
index 95b2084db..27b2edf38 100644
--- a/docs/zh-cn/custom_quantum_functions.md
+++ b/docs/zh-cn/custom_quantum_functions.md
@@ -424,7 +424,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
424 layer_state_set(layer_state); // 那么立刻更新层颜色 424 layer_state_set(layer_state); // 那么立刻更新层颜色
425 } 425 }
426 } 426 }
427 return false; break; 427 return false;
428 case RGB_MODE_FORWARD ... RGB_MODE_GRADIENT: // 对于所有的RGB代码 (see quantum_keycodes.h, L400 可以参考) 428 case RGB_MODE_FORWARD ... RGB_MODE_GRADIENT: // 对于所有的RGB代码 (see quantum_keycodes.h, L400 可以参考)
429 if (record->event.pressed) { //本句失能层指示,假设你改变了这个…你要把它禁用 429 if (record->event.pressed) { //本句失能层指示,假设你改变了这个…你要把它禁用
430 if (user_config.rgb_layer_change) { // 仅当使能时 430 if (user_config.rgb_layer_change) { // 仅当使能时