Correct broken link in core::pin doc

This commit is contained in:
Tomoki Nakagawa 2024-04-11 14:58:40 +09:00
parent 08273780d8
commit 68914f2095

View File

@ -379,11 +379,11 @@
//! //!
//! Exposing access to the inner field which you want to remain pinned must then be carefully //! 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 //! 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 //! <code>[Pin]<[&mut] InnerT>></code> where <code>InnerT: [Unpin]</code> would allow safe code to
//! move the inner value out of that pinning pointer, which is precisely what you're seeking to //! trivially move the inner value out of that pinning pointer, which is precisely what you're
//! prevent! Exposing a field of a pinned value through a pinning pointer is called "projecting" //! seeking to prevent! Exposing a field of a pinned value through a pinning pointer is called
//! a pin, and the more general case of deciding in which cases a pin should be able to be //! "projecting" a pin, and the more general case of deciding in which cases a pin should be able
//! projected or not is called "structural pinning." We will go into more detail about this //! to be projected or not is called "structural pinning." We will go into more detail about this
//! [below][structural-pinning]. //! [below][structural-pinning].
//! //!
//! # Examples of address-sensitive types //! # Examples of address-sensitive types