Small change to example to make variable values more sensible.

This commit is contained in:
Christopher Kendell 2014-04-04 16:25:52 -07:00
parent e5f1b9f6dc
commit 51ea4fb17f
1 changed files with 2 additions and 2 deletions

View File

@ -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;
~~~