Skip to content

Commit

Permalink
Have to use Weak instead of Arc in Weak::new() example
Browse files Browse the repository at this point in the history
  • Loading branch information
shahn committed Dec 19, 2015
1 parent 7dd618f commit 5b3bdaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liballoc/arc.rs
Expand Up @@ -922,7 +922,7 @@ impl<T> Weak<T> {
/// ```
/// #![feature(downgraded_weak)]
///
/// use std::sync::Arc;
/// use std::sync::Weak;
///
/// let empty: Weak<i64> = Weak::new();
/// ```
Expand Down

0 comments on commit 5b3bdaf

Please sign in to comment.