Skip to content

Commit

Permalink
Small change to example to make variable values more sensible.
Browse files Browse the repository at this point in the history
  • Loading branch information
ckendell committed Apr 4, 2014
1 parent e5f1b9f commit 51ea4fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/tutorial.md
Expand Up @@ -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;
~~~
Expand Down

0 comments on commit 51ea4fb

Please sign in to comment.