File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 331
331
//!
332
332
//! Note that this invariant is enforced by simply making it impossible to call code that would
333
333
//! perform a move on the pinned value. This is the case since the only way to access that pinned
334
- //! value is through the pinning <code>[Pin]<[&mut] T>> </code>, which in turn restricts our access.
334
+ //! value is through the pinning <code>[Pin]<[&mut] T></code>, which in turn restricts our access.
335
335
//!
336
336
//! ## [`Unpin`]
337
337
//!
379
379
//!
380
380
//! Exposing access to the inner field which you want to remain pinned must then be carefully
381
381
//! considered as well! Remember, exposing a method that gives access to a
382
- //! <code>[Pin]<[&mut] InnerT>> </code> where <code>InnerT: [Unpin]</code> would allow safe code to
382
+ //! <code>[Pin]<[&mut] InnerT></code> where <code>InnerT: [Unpin]</code> would allow safe code to
383
383
//! trivially move the inner value out of that pinning pointer, which is precisely what you're
384
384
//! seeking to prevent! Exposing a field of a pinned value through a pinning pointer is called
385
385
//! "projecting" a pin, and the more general case of deciding in which cases a pin should be able
You can’t perform that action at this time.
0 commit comments