Skip to content

Commit 68914f2

Browse files
committed
Correct broken link in core::pin doc
1 parent 0827378 commit 68914f2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

library/core/src/pin.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -379,11 +379,11 @@
379379
//!
380380
//! Exposing access to the inner field which you want to remain pinned must then be carefully
381381
//! considered as well! Remember, exposing a method that gives access to a
382-
//! <code>[Pin]<[&mut] InnerT>></code> where `InnerT: [Unpin]` would allow safe code to trivially
383-
//! move the inner value out of that pinning pointer, which is precisely what you're seeking to
384-
//! prevent! Exposing a field of a pinned value through a pinning pointer is called "projecting"
385-
//! a pin, and the more general case of deciding in which cases a pin should be able to be
386-
//! projected or not is called "structural pinning." We will go into more detail about this
382+
//! <code>[Pin]<[&mut] InnerT>></code> where <code>InnerT: [Unpin]</code> would allow safe code to
383+
//! trivially move the inner value out of that pinning pointer, which is precisely what you're
384+
//! seeking to prevent! Exposing a field of a pinned value through a pinning pointer is called
385+
//! "projecting" a pin, and the more general case of deciding in which cases a pin should be able
386+
//! to be projected or not is called "structural pinning." We will go into more detail about this
387387
//! [below][structural-pinning].
388388
//!
389389
//! # Examples of address-sensitive types

0 commit comments

Comments
 (0)