mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-01-14 05:05:59 +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
|
||||
| b x y |
|
||||
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"
|
||||
y := x size. "string size"
|
||||
y := x at: 2. "char at location"
|
||||
|
Loading…
Reference in New Issue
Block a user