Skip to content

Commit

Permalink
doc: Removing repeated variable name to make it less ambiguious
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfie John committed Sep 22, 2014
1 parent 437179e commit 9d95729
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/doc/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,7 @@ Here's some code:
use std::sync::Arc;
fn main() {
let numbers = vec![1i, 2i, 3i];
let numbers = Arc::new(numbers);
let numbers = Arc::new(vec![1i, 2i, 3i]);
for num in range(0u, 3) {
let (tx, rx) = channel();
Expand Down Expand Up @@ -346,8 +345,7 @@ and modify it to mutate the shared state:
use std::sync::{Arc, Mutex};
fn main() {
let numbers = vec![1i, 2i, 3i];
let numbers_lock = Arc::new(Mutex::new(numbers));
let numbers_lock = Arc::new(Mutex::new(vec![1i, 2i, 3i]));
for num in range(0u, 3) {
let (tx, rx) = channel();
Expand Down

5 comments on commit 9d95729

@bors
Copy link
Contributor

@bors bors commented on 9d95729 Sep 23, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 9d95729 Sep 23, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging alfie/rust/master = 9d95729 into auto

@bors
Copy link
Contributor

@bors bors commented on 9d95729 Sep 23, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alfie/rust/master = 9d95729 merged ok, testing candidate = 2f9669c

@bors
Copy link
Contributor

@bors bors commented on 9d95729 Sep 23, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 9d95729 Sep 23, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 2f9669c

Please sign in to comment.