diff options
| author | Taylor Cramer <cramertj@google.com> | 2018-12-18 10:25:02 -0800 |
|---|---|---|
| committer | Taylor Cramer <cramertj@google.com> | 2018-12-21 20:42:50 -0800 |
| commit | 684fe9a6b2b39e6b8a1089eecd0334ef484fcc56 (patch) | |
| tree | 2bc0946e85c1264b3c63b198c705ce143905e594 /src/libcore | |
| parent | 3005bf360d11dbda5d32b9b75647df07bfa1372d (diff) | |
| download | rust-684fe9a6b2b39e6b8a1089eecd0334ef484fcc56.tar.gz rust-684fe9a6b2b39e6b8a1089eecd0334ef484fcc56.zip | |
Rename Box/Arc/Rc::pinned to ::pin
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/pin.rs | 2 |
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 |
