From 8c00942c39883423745b09066c1c5efcc3d31660 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Wed, 13 Apr 2016 08:51:40 -0700 Subject: [PATCH] more doc fixes --- docs/lessons/compass/activity.md | 12 ++++-------- docs/lessons/digi-yoyo/activity.md | 2 +- docs/reference/js/comment.md | 6 ------ 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/docs/lessons/compass/activity.md b/docs/lessons/compass/activity.md index 281ac64f..f06a5770 100644 --- a/docs/lessons/compass/activity.md +++ b/docs/lessons/compass/activity.md @@ -28,9 +28,8 @@ basic.forever(() => { If `degrees` is less than `45`, then the compass heading is mostly pointing toward North. Display `N` on the micro:bit. ```blocks - let degrees = 0; basic.forever(() => { - degrees = input.compassHeading(); + let degrees = input.compassHeading(); if (degrees < 45) { basic.showString("N"); } @@ -41,9 +40,8 @@ If `degrees` is less than 135, the micro:bit is mostly pointing East. Display `E ```blocks - let degrees = 0; basic.forever(() => { - degrees = input.compassHeading(); + let degrees = input.compassHeading(); if (degrees < 45) { basic.showString("N"); } @@ -57,9 +55,8 @@ If `degrees` is less than 225, the micro:bit is mostly pointing South. Display ` ```blocks - let degrees = 0; basic.forever(() => { - degrees = input.compassHeading(); + let degrees = input.compassHeading(); if (degrees < 45) { basic.showString("N"); } @@ -76,9 +73,8 @@ basic.forever(() => { If none of these conditions returned true, then the micro:bit must be pointing West. Display `W` on the micro:bit. ```blocks - let degrees = 0; basic.forever(() => { - degrees = input.compassHeading(); + let degrees = input.compassHeading(); if (degrees < 45) { basic.showString("N"); } diff --git a/docs/lessons/digi-yoyo/activity.md b/docs/lessons/digi-yoyo/activity.md index d503a605..86ad9043 100644 --- a/docs/lessons/digi-yoyo/activity.md +++ b/docs/lessons/digi-yoyo/activity.md @@ -31,7 +31,7 @@ Let's add a pause. Then show the value of the the count. ```blocks - let count = 0; +let count = 0; while (count < 10) { basic.pause(100); basic.showNumber(count) diff --git a/docs/reference/js/comment.md b/docs/reference/js/comment.md index 37b47f54..cc851c18 100644 --- a/docs/reference/js/comment.md +++ b/docs/reference/js/comment.md @@ -38,16 +38,10 @@ This function has comments that describe the purpose of the function: * @param x TODO */ export function square(x: number) : number { - let result: number return x * x - return result } ``` -### Formatting - -Use [markdown syntax](/js/markdown) to format your comments (for example, **bold** and *italic* formatting). - ### Commenting out code During the debugging process, you may want to comment out a section of your code so that it doesn't run.