diff options
| author | Tomoki Nakagawa <tomokinat@google.com> | 2024-04-11 14:58:40 +0900 |
|---|---|---|
| committer | Tomoki Nakagawa <tomokinat@google.com> | 2024-04-11 15:02:49 +0900 |
| commit | 68914f20959df94a8f557cfb99e793e01fb7bc83 (patch) | |
| tree | 4d33a6ace9b6da5f5b800cc41b489c6fd50e5c47 | |
| parent | 08273780d84816d85f002f4385c342fc7eaba58b (diff) | |
| download | rust-68914f20959df94a8f557cfb99e793e01fb7bc83.tar.gz rust-68914f20959df94a8f557cfb99e793e01fb7bc83.zip | |
Correct broken link in core::pin doc
| -rw-r--r-- | library/core/src/pin.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/core/src/pin.rs b/library/core/src/pin.rs index e843a5d5790..c18dbafff16 100644 --- a/library/core/src/pin.rs +++ b/library/core/src/pin.rs @@ -379,11 +379,11 @@ //! //! Exposing access to the inner field which you want to remain pinned must then be carefully //! considered as well! Remember, exposing a method that gives access to a -//! <code>[Pin]<[&mut] InnerT>></code> where `InnerT: [Unpin]` would allow safe code to trivially -//! move the inner value out of that pinning pointer, which is precisely what you're seeking to -//! prevent! Exposing a field of a pinned value through a pinning pointer is called "projecting" -//! a pin, and the more general case of deciding in which cases a pin should be able to be -//! projected or not is called "structural pinning." We will go into more detail about this +//! <code>[Pin]<[&mut] InnerT>></code> where <code>InnerT: [Unpin]</code> would allow safe code to +//! trivially move the inner value out of that pinning pointer, which is precisely what you're +//! seeking to prevent! Exposing a field of a pinned value through a pinning pointer is called +//! "projecting" a pin, and the more general case of deciding in which cases a pin should be able +//! to be projected or not is called "structural pinning." We will go into more detail about this //! [below][structural-pinning]. //! //! # Examples of address-sensitive types |
