diff options
| author | Christopher Kendell <ckendell@outlook.com> | 2014-04-04 16:25:52 -0700 |
|---|---|---|
| committer | Christopher Kendell <ckendell@outlook.com> | 2014-04-04 16:25:52 -0700 |
| commit | 51ea4fb17f8a6c37220b971dd8c7f343f9fdcea2 (patch) | |
| tree | f949c2928dd37131547d452a51ed9e4d4383b086 /src/doc | |
| parent | e5f1b9f6dc9418325f83d9766c7cfab30cb48018 (diff) | |
| download | rust-51ea4fb17f8a6c37220b971dd8c7f343f9fdcea2.tar.gz rust-51ea4fb17f8a6c37220b971dd8c7f343f9fdcea2.zip | |
Small change to example to make variable values more sensible.
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/tutorial.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/tutorial.md b/src/doc/tutorial.md index 1da3077fa72..21282fea6f6 100644 --- a/src/doc/tutorial.md +++ b/src/doc/tutorial.md @@ -1492,8 +1492,8 @@ Rust uses the unary star operator (`*`) to access the contents of a box or pointer, similarly to C. ~~~ -let owned = ~20; -let borrowed = &30; +let owned = ~10; +let borrowed = &20; let sum = *owned + *borrowed; ~~~ |
