diff options
Diffstat (limited to 'src/doc/intro.md')
| -rw-r--r-- | src/doc/intro.md | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/doc/intro.md b/src/doc/intro.md index 4d1eb1b31a7..886528e8672 100644 --- a/src/doc/intro.md +++ b/src/doc/intro.md @@ -297,8 +297,7 @@ an atomically reference counted box ("A.R.C." == "atomically reference counted") Here's some code: ``` -extern crate sync; -use sync::Arc; +use std::sync::Arc; fn main() { let numbers = vec![1,2,3]; @@ -344,8 +343,7 @@ Let's take the same example yet again, and modify it to mutate the shared state: ``` -extern crate sync; -use sync::{Arc, Mutex}; +use std::sync::{Arc, Mutex}; fn main() { let numbers = vec![1,2,3]; |
