Improve code in the intro.
All these stars aren't needed anymore.
This commit is contained in:
parent
8a40854660
commit
4a74af62c6
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue