about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorTaylor Cramer <cramertj@google.com>2018-12-18 10:25:02 -0800
committerTaylor Cramer <cramertj@google.com>2018-12-21 20:42:50 -0800
commit684fe9a6b2b39e6b8a1089eecd0334ef484fcc56 (patch)
tree2bc0946e85c1264b3c63b198c705ce143905e594 /src/libcore
parent3005bf360d11dbda5d32b9b75647df07bfa1372d (diff)
downloadrust-684fe9a6b2b39e6b8a1089eecd0334ef484fcc56.tar.gz
rust-684fe9a6b2b39e6b8a1089eecd0334ef484fcc56.zip
Rename Box/Arc/Rc::pinned to ::pin
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/pin.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/pin.rs b/src/libcore/pin.rs
index 9073e6e31b1..4f4ca4047e4 100644
--- a/src/libcore/pin.rs
+++ b/src/libcore/pin.rs
@@ -70,7 +70,7 @@
 //!             slice: NonNull::dangling(),
 //!             _pin: PhantomPinned,
 //!         };
-//!         let mut boxed = Box::pinned(res);
+//!         let mut boxed = Box::pin(res);
 //!
 //!         let slice = NonNull::from(&boxed.data);
 //!         // we know this is safe because modifying a field doesn't move the whole struct