Skip to content

Commit b91ab62

Browse files
authored
Fix a tiny error in documentation of std::pin.
1 parent f22dca0 commit b91ab62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/pin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
//! assert_eq!(still_unmoved.slice, NonNull::from(&still_unmoved.data));
110110
//!
111111
//! // Since our type doesn't implement Unpin, this will fail to compile:
112-
//! // let new_unmoved = Unmovable::new("world".to_string());
112+
//! // let mut new_unmoved = Unmovable::new("world".to_string());
113113
//! // std::mem::swap(&mut *still_unmoved, &mut *new_unmoved);
114114
//! ```
115115
//!

0 commit comments

Comments
 (0)