From: Ralf Jung Date: Tue, 19 Feb 2019 19:54:31 +0000 (+0100) Subject: examples X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=c774bc650a6b19e6ca6b970dda294ba8937a6548;p=rust.git examples --- diff --git a/src/libcore/pin.rs b/src/libcore/pin.rs index 2d674fe4f79..a142fd811ad 100644 --- a/src/libcore/pin.rs +++ b/src/libcore/pin.rs @@ -36,7 +36,9 @@ //! //! However, these restrictions are usually not necessary. Many types are always freely //! movable, even when pinned, because they do not rely on having a stable address. -//! These types implement the [`Unpin`] auto-trait, which +//! This includes all the basic types (`bool`, `i32` and friends, references) +//! as well as types consisting solely of these types. +//! Types that do not care about pinning implement the [`Unpin`] auto-trait, which //! nullifies the effect of [`Pin`]. For `T: Unpin`, `Pin>` and `Box` function //! identically, as do `Pin<&mut T>` and `&mut T`. //!