@@ -1335,13 +1335,12 @@ stored on the stack, the local heap, or the exchange heap. Borrowed
1335
1335
pointers to vectors are also called 'slices'.
1336
1336
1337
1337
~~~
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
+ # }
1345
1344
// A fixed-size stack vector
1346
1345
let stack_crayons: [ Crayon * 3] = [ Almond, AntiqueBrass, Apricot] ;
1347
1346
@@ -1368,8 +1367,7 @@ let your_crayons = ~[BananaMania, Beaver, Bittersweet];
1368
1367
// Add two vectors to create a new one
1369
1368
let our_crayons = my_crayons + your_crayons;
1370
1369
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
1373
1371
let mut my_crayons = move my_crayons;
1374
1372
my_crayons += your_crayons;
1375
1373
~~~~
0 commit comments