Merge pull request #180 from Microsoft/snippetfixes

Fixes to documentation snippets
This commit is contained in:
Peli de Halleux
2016-07-27 13:30:39 -07:00
committed by GitHub
6 changed files with 18 additions and 16 deletions

View File

@ -3,11 +3,11 @@
Display an [Image](/reference/images/image) on the BBC micro:bit's [LED screen](/device/screen). NOTE: `basic -> plot image` has been replaced by `basic -> show leds`.
```sig
basic.plotLeds(`
basic.showLeds(`
. . . . .
. # . # .
. . # . .
# ; . . #
# . . . #
. # # # .
`)
```
@ -16,14 +16,14 @@ basic.plotLeds(`
* leds - a series of LED on/off states that form an image (see steps below)
### Example: simley
### Example: smiley
```blocks
basic.plotLeds(`
basic.showLeds(`
. . . . .
. # . # .
. . # . .
# ; . . #
# . . . #
. # # # .
`)
```

View File

@ -61,7 +61,7 @@ The [math library](/blocks/math) includes math related functions.
For example, the `absolute` function returns the returns the absolute value of input parameter `x`:
```blocks
let abs = math.absolute(-42);
let abs = Math.abs(-42);
basic.showNumber(abs);
```