From 4a74af62c627df259f0e0a6d523f71b7cae749d0 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Thu, 23 Oct 2014 07:35:34 -0400 Subject: [PATCH] Improve code in the intro. All these stars aren't needed anymore. --- src/doc/intro.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/intro.md b/src/doc/intro.md index 21ec551eb30..14c1f87fc1b 100644 --- a/src/doc/intro.md +++ b/src/doc/intro.md @@ -471,7 +471,7 @@ fn main() { spawn(proc() { let mut array = number.lock(); - (*(*array).get_mut(i)) += 1; + (*array)[i] += 1; println!("numbers[{}] is {}", i, (*array)[i]); });