summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell van Manen <ma.van.manen@live.nl>2018-03-01 17:05:15 +0100
committerskullydazed <skullydazed@users.noreply.github.com>2018-03-01 08:05:15 -0800
commit31cae1f1bd3f014893f0284f6e9bc80165130fcd (patch)
treefcaeca2a797233f317e2d7e5b4673996ef6b2a4c
parent0092be5925bc722b875d6a5d03efd00527840438 (diff)
downloadqmk_firmware-31cae1f1bd3f014893f0284f6e9bc80165130fcd.tar.gz
qmk_firmware-31cae1f1bd3f014893f0284f6e9bc80165130fcd.zip
Update feature_macros.md (#2387)
break statements are never reached due to the return statement, so unnecessary
-rw-r--r--docs/feature_macros.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/feature_macros.md b/docs/feature_macros.md
index dff692bd8f..e77d7afea3 100644
--- a/docs/feature_macros.md
+++ b/docs/feature_macros.md
@@ -22,7 +22,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch(keycode) {
case MY_CUSTOM_MACRO:
SEND_STRING("QMK is the best thing ever!"); // this is our macro!
- return false; break;
+ return false;
}
}
return true;
@@ -56,10 +56,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch(keycode) {
case MY_CUSTOM_MACRO:
SEND_STRING("QMK is the best thing ever!");
- return false; break;
+ return false;
case MY_OTHER_MACRO:
SEND_STRING(SS_LCTRL("ac")); // selects all and copies
- return false; break;
+ return false;
}
}
return true;