Skip to content

Commit 07fb352

Browse files
committed
Tutorial
1 parent f0c4140 commit 07fb352

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

doc/tutorial.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,13 +1335,12 @@ stored on the stack, the local heap, or the exchange heap. Borrowed
13351335
pointers to vectors are also called 'slices'.
13361336
13371337
~~~
1338-
enum Crayon {
1339-
Almond, AntiqueBrass, Apricot,
1340-
Aquamarine, Asparagus, AtomicTangerine,
1341-
BananaMania, Beaver, Bittersweet,
1342-
Black, BlizzardBlue, Blue
1343-
}
1344-
1338+
# enum Crayon {
1339+
# Almond, AntiqueBrass, Apricot,
1340+
# Aquamarine, Asparagus, AtomicTangerine,
1341+
# BananaMania, Beaver, Bittersweet,
1342+
# Black, BlizzardBlue, Blue
1343+
# }
13451344
// A fixed-size stack vector
13461345
let stack_crayons: [Crayon * 3] = [Almond, AntiqueBrass, Apricot];
13471346

@@ -1368,8 +1367,7 @@ let your_crayons = ~[BananaMania, Beaver, Bittersweet];
13681367
// Add two vectors to create a new one
13691368
let our_crayons = my_crayons + your_crayons;
13701369
1371-
// += will append to a vector, provided it leves
1372-
// in a mutable slot
1370+
// += will append to a vector, provided it lives in a mutable slot
13731371
let mut my_crayons = move my_crayons;
13741372
my_crayons += your_crayons;
13751373
~~~~

0 commit comments

Comments
 (0)