mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-01-14 21:25:58 +00:00
Fix symbol concatenation example in Smalltalk
This commit is contained in:
parent
ef04802863
commit
34ac05a9e7
@ -388,7 +388,7 @@ y := $A max: $B.
|
|||||||
```smalltalk
|
```smalltalk
|
||||||
| b x y |
|
| b x y |
|
||||||
x := #Hello. "symbol assignment"
|
x := #Hello. "symbol assignment"
|
||||||
y := 'String', 'Concatenation'. "symbol concatenation (result is string)"
|
y := #Symbol, #Concatenation. "symbol concatenation (result is string)"
|
||||||
b := x isEmpty. "test if symbol is empty"
|
b := x isEmpty. "test if symbol is empty"
|
||||||
y := x size. "string size"
|
y := x size. "string size"
|
||||||
y := x at: 2. "char at location"
|
y := x at: 2. "char at location"
|
||||||
|
Loading…
Reference in New Issue
Block a user