Skip to content

Commit

Permalink
Fix a tiny error in documentation of std::pin.
Browse files Browse the repository at this point in the history
  • Loading branch information
taeguk authored Mar 5, 2019
1 parent f22dca0 commit b91ab62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/pin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
//! assert_eq!(still_unmoved.slice, NonNull::from(&still_unmoved.data));
//!
//! // Since our type doesn't implement Unpin, this will fail to compile:
//! // let new_unmoved = Unmovable::new("world".to_string());
//! // let mut new_unmoved = Unmovable::new("world".to_string());
//! // std::mem::swap(&mut *still_unmoved, &mut *new_unmoved);
//! ```
//!
Expand Down

0 comments on commit b91ab62

Please sign in to comment.