From 6a5cfae5ff5c1ef3e0ed0dba4c7a09022c1e863b Mon Sep 17 00:00:00 2001 From: Thomas Denney Date: Tue, 19 Jul 2016 11:42:42 +0100 Subject: [PATCH] snake_case -> camelCase in docs --- docs/lessons/bop-it/activity.md | 2 +- docs/lessons/speed-button/quiz-answers.md | 12 ++++++------ docs/lessons/speed-button/quiz.md | 12 ++++++------ docs/lessons/zoomer/quiz-answers.md | 2 +- docs/reference/bluetooth/uart-read.md | 6 +++--- docs/reference/game/game-library.md | 2 +- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/lessons/bop-it/activity.md b/docs/lessons/bop-it/activity.md index 93d849bf..0f9fca6e 100644 --- a/docs/lessons/bop-it/activity.md +++ b/docs/lessons/bop-it/activity.md @@ -41,7 +41,7 @@ Now let's add some more types of instructions for the player to follow. Let's ad /** * {highlight} */ -export function newAction_() { +export function newAction() { action = Math.random(4) // *** if (action == 0) { basic.showString("PUSH A", 150) // *** diff --git a/docs/lessons/speed-button/quiz-answers.md b/docs/lessons/speed-button/quiz-answers.md index 99a53428..bc647131 100644 --- a/docs/lessons/speed-button/quiz-answers.md +++ b/docs/lessons/speed-button/quiz-answers.md @@ -21,10 +21,10 @@ let count = 0 ## 3. If the rectangle below represents the BBC micro:bit, shade the areas that will be displayed after two button presses on Button A. Explain why that particular area is shaded. ```blocks -let count_ = 0 +let count = 0 input.onButtonPressed(Button.A, () => { - count_ = count_ + 1 - basic.showNumber(count_, 100) + count = count + 1 + basic.showNumber(count, 100) }) ``` @@ -37,10 +37,10 @@ After two button presses, **count** will be equal to 2. ## 5. If the rectangle below represents the BBC micro:bit, shade the areas that will be displayed after five button presses on Button A. Explain why that particular area is shaded. ```blocks -let count_ = 0 +let count = 0 input.onButtonPressed(Button.A, () => { - count_ = count_ + 1 - basic.showNumber(count_, 100) + count = count + 1 + basic.showNumber(count, 100) }) ``` diff --git a/docs/lessons/speed-button/quiz.md b/docs/lessons/speed-button/quiz.md index 3061a184..3e79045b 100644 --- a/docs/lessons/speed-button/quiz.md +++ b/docs/lessons/speed-button/quiz.md @@ -23,10 +23,10 @@ let count = 0 ## 3. Draw which LED is ON after running this code and pressing Button A twice. Explain why you chose to draw that number ```blocks -let count_ = 0 +let count = 0 input.onButtonPressed(Button.A, () => { - count_ = count_ + 1 - basic.showNumber(count_, 100) + count = count + 1 + basic.showNumber(count, 100) }) ``` @@ -37,10 +37,10 @@ input.onButtonPressed(Button.A, () => { ## 4. Draw which LED is ON after running this code and pressing Button A five times. Explain why you chose to draw that number. ```blocks -let count_ = 0 +let count = 0 input.onButtonPressed(Button.A, () => { - count_ = count_ + 1 - basic.showNumber(count_, 100) + count = count + 1 + basic.showNumber(count, 100) }) ``` diff --git a/docs/lessons/zoomer/quiz-answers.md b/docs/lessons/zoomer/quiz-answers.md index d91c8ca1..3144e594 100644 --- a/docs/lessons/zoomer/quiz-answers.md +++ b/docs/lessons/zoomer/quiz-answers.md @@ -15,7 +15,7 @@ Write the line of code to measure the acceleration and then store in it a variab
```blocks -let accX_ = input.acceleration("x") +let accX = input.acceleration("x") ``` Note: acceleration does not have be measured in the "x" direction. It can also be in the "y" or "z" direction. diff --git a/docs/reference/bluetooth/uart-read.md b/docs/reference/bluetooth/uart-read.md index eb08ee7e..b7295109 100755 --- a/docs/reference/bluetooth/uart-read.md +++ b/docs/reference/bluetooth/uart-read.md @@ -18,15 +18,15 @@ bluetooth.uartRead(""); ### Example: Starting the Bluetooth UART service and then reading data received from another device which is terminated by ":" character and then displaying it ```blocks -let uart_data = ""; +let uartData = ""; let connected = 0; basic.showString("UART"); bluetooth.onBluetoothConnected(() => { basic.showString("C"); connected = 1; while (connected == 1) { - uart_data = bluetooth.uartRead(":"); - basic.showString(uart_data); + uartData = bluetooth.uartRead(":"); + basic.showString(uartData); } }); bluetooth.onBluetoothDisconnected(() => { diff --git a/docs/reference/game/game-library.md b/docs/reference/game/game-library.md index fa818638..9d5a4041 100644 --- a/docs/reference/game/game-library.md +++ b/docs/reference/game/game-library.md @@ -86,7 +86,7 @@ Sprite - If the sprite is on the edge, the sprite will bounce ![](/static/mb/game-library/if-on-edge-bounce-0.png) ``` -export function ifOnEdge_Bounce(_this: micro_bitSprites.LedSprite) +export function ifOnEdgeBounce(_this: micro_bitSprites.LedSprite) ``` ### [Change score by](/reference/game/change-score-by)