diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-08-10 13:00:20 -0700 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-08-10 13:00:20 -0700 |
| commit | 5e1ca23a65324156ea72cf8bd46ae16672471007 (patch) | |
| tree | 0f77e538f6b36e36fa3d5f5a6b89384cb0a2c8e4 /doc/tutorial.md | |
| parent | 09f4c9af13e8dcd9d0bee69db61291f0ad85f266 (diff) | |
| parent | 828bfb2c61aaac93325b00737362769d045b6438 (diff) | |
| download | rust-5e1ca23a65324156ea72cf8bd46ae16672471007.tar.gz rust-5e1ca23a65324156ea72cf8bd46ae16672471007.zip | |
Merge branch 'vec-exh' of https://github.com/stepancheg/rust into rollup
Diffstat (limited to 'doc/tutorial.md')
| -rw-r--r-- | doc/tutorial.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md index 40e276ae04a..74d9b0fbfda 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -1305,7 +1305,7 @@ match crayons[0] { A vector can be destructured using pattern matching: ~~~~ -let numbers: [int, ..3] = [1, 2, 3]; +let numbers: &[int] = &[1, 2, 3]; let score = match numbers { [] => 0, [a] => a * 10, |
