瀏覽代碼

Update feature_macros.md (#2387)

break statements are never reached due to the return statement, so unnecessary
Mitchell van Manen 7 年之前
父節點
當前提交
31cae1f1bd
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      docs/feature_macros.md

+ 3 - 3
docs/feature_macros.md

@@ -22,7 +22,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 		switch(keycode) {
 		switch(keycode) {
 			case MY_CUSTOM_MACRO:
 			case MY_CUSTOM_MACRO:
 				SEND_STRING("QMK is the best thing ever!"); // this is our macro!
 				SEND_STRING("QMK is the best thing ever!"); // this is our macro!
-				return false; break;
+				return false;
 		}
 		}
 	}
 	}
 	return true;
 	return true;
@@ -56,10 +56,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 		switch(keycode) {
 		switch(keycode) {
 			case MY_CUSTOM_MACRO:
 			case MY_CUSTOM_MACRO:
 				SEND_STRING("QMK is the best thing ever!");
 				SEND_STRING("QMK is the best thing ever!");
-				return false; break;
+				return false;
 			case MY_OTHER_MACRO:
 			case MY_OTHER_MACRO:
 				SEND_STRING(SS_LCTRL("ac")); // selects all and copies
 				SEND_STRING(SS_LCTRL("ac")); // selects all and copies
-				return false; break;
+				return false;
 		}
 		}
 	}
 	}
 	return true;
 	return true;