diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-01-15 22:06:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-15 22:06:11 +0100 |
| commit | 85d2b2af150e6380425554f63e9d2fa2a9f1a761 (patch) | |
| tree | c0d74fa8490d90c303459833892d1446247d5c7a | |
| parent | 27f336106db859435f6edcf507e38f90b1e2af43 (diff) | |
| parent | b535a1dd654fd538776249d951593a8712d1b32a (diff) | |
| download | rust-85d2b2af150e6380425554f63e9d2fa2a9f1a761.tar.gz rust-85d2b2af150e6380425554f63e9d2fa2a9f1a761.zip | |
Rollup merge of #135497 - DJMrTV:master, r=jhpratt
fix typo in typenames of pin documentation I noticed this whilst reading the documentation for pin. Basically there was just one to many closing angle brackets on the type parameters in the documentation where instead of being `Pin<&mut T>` it was `Pin<&mut T>>`
| -rw-r--r-- | library/core/src/pin.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/pin.rs b/library/core/src/pin.rs index 83730285636..71044190f0c 100644 --- a/library/core/src/pin.rs +++ b/library/core/src/pin.rs @@ -331,7 +331,7 @@ //! //! Note that this invariant is enforced by simply making it impossible to call code that would //! perform a move on the pinned value. This is the case since the only way to access that pinned -//! value is through the pinning <code>[Pin]<[&mut] T>></code>, which in turn restricts our access. +//! value is through the pinning <code>[Pin]<[&mut] T></code>, which in turn restricts our access. //! //! ## [`Unpin`] //! @@ -379,7 +379,7 @@ //! //! 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 <code>InnerT: [Unpin]</code> would allow safe code to +//! <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 |
