Skip to content

Commit 6625b75

Browse files
authored
Rollup merge of #123770 - tomokinat:master, r=joboet
Correct broken link in core::pin doc This is a minor correction to the doc, which fails to link `Unpin` trait. Before (rendered): ![before](https://github.com/rust-lang/rust/assets/49511064/c4f2f94d-91ea-4cee-be69-b0053453194a) After (rendered): ![before](https://github.com/rust-lang/rust/assets/49511064/847068f8-73b2-4acb-ab78-3351ffe5b0a0)
2 parents 074269f + 68914f2 commit 6625b75

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)