Skip to content

Commit 51ea4fb

Browse files
committed
Small change to example to make variable values more sensible.
1 parent e5f1b9f commit 51ea4fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,8 +1492,8 @@ Rust uses the unary star operator (`*`) to access the contents of a
14921492
box or pointer, similarly to C.
14931493
14941494
~~~
1495-
let owned = ~20;
1496-
let borrowed = &30;
1495+
let owned = ~10;
1496+
let borrowed = &20;
14971497

14981498
let sum = *owned + *borrowed;
14991499
~~~

0 commit comments

Comments
 (0)