1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-07-30 19:40:36 +02:00

Fix symbol concatenation example in Smalltalk

This commit is contained in:
Daisuke Fujimura
2020-06-20 13:17:12 +09:00
committed by GitHub
parent ef04802863
commit 34ac05a9e7

View File

@@ -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"