Skip to content

Commit db37383

Browse files
committed
Fix pin docs
Split a long sentence to improve readability.
1 parent bcded33 commit db37383

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

library/core/src/pin.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,9 +474,9 @@
474474
//!
475475
//! In an intrusive doubly-linked list, the collection itself does not own the memory in which
476476
//! each of its elements is stored. Instead, each client is free to allocate space for elements it
477-
//! adds to the list in whichever manner it likes, including on the stack! Elements can live on a
478-
//! stack frame that lives shorter than the collection does provided the elements that live in a
479-
//! given stack frame are removed from the list before going out of scope.
477+
//! adds to the list in whichever manner it likes, including on the stack! Elements can be stored
478+
//! in a stack frame shorter-lived than the collection, provided they are removed from the list
479+
//! before that frame goes out of scope.
480480
//!
481481
//! To make such an intrusive data structure work, every element stores pointers to its predecessor
482482
//! and successor within its own data, rather than having the list structure itself managing those

0 commit comments

Comments
 (0)