summaryrefslogtreecommitdiffhomepage
path: root/smalltalk.html.markdown
diff options
context:
space:
mode:
authorShawn Zhang <shawnzhang009@gmail.com>2016-03-15 11:42:20 +0800
committerShawn Zhang <shawnzhang009@gmail.com>2016-03-15 11:42:20 +0800
commitb38a7645366b1580b5f554303e411447c7d2d09d (patch)
treecfe5c9e59fa1f3611a5b5545f9b2d74cbac461f2 /smalltalk.html.markdown
parent072424afd77b9d772102f83508fcc337ffc81a7d (diff)
parentfbe11b52d5fe839f791935012b93ff8ef2ac91f6 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'smalltalk.html.markdown')
-rw-r--r--smalltalk.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/smalltalk.html.markdown b/smalltalk.html.markdown
index 3b388505..2c17b753 100644
--- a/smalltalk.html.markdown
+++ b/smalltalk.html.markdown
@@ -37,7 +37,7 @@ Feedback highly appreciated! Reach me at [@jigyasa_grover](https://twitter.com/j
`"Comments are enclosed in quotes"`
-`"Period (.) is the statement seperator"`
+`"Period (.) is the statement separator"`
## Transcript:
```
@@ -305,7 +305,7 @@ result := (switch at: $B) value.
x := 4. y := 1.
[x > 0] whileTrue: [x := x - 1. y := y * 2]. "while true loop"
[x >= 4] whileFalse: [x := x + 1. y := y * 2]. "while false loop"
-x timesRepeat: [y := y * 2]. "times repear loop (i := 1 to x)"
+x timesRepeat: [y := y * 2]. "times repeat loop (i := 1 to x)"
1 to: x do: [:a | y := y * 2]. "for loop"
1 to: x by: 2 do: [:a | y := y / 2]. "for loop with specified increment"
#(5 4 3) do: [:a | x := x + a]. "iterate over array elements"
@@ -320,7 +320,7 @@ y := x isUppercase. "test if upper case"
y := x isLetter. "test if letter"
y := x isDigit. "test if digit"
y := x isAlphaNumeric. "test if alphanumeric"
-y := x isSeparator. "test if seperator char"
+y := x isSeparator. "test if separator char"
y := x isVowel. "test if vowel"
y := x digitValue. "convert to numeric digit value"
y := x asLowercase. "convert to lower case"