We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7754865 commit b98bf88Copy full SHA for b98bf88
src/libcore/mem.rs
@@ -666,8 +666,8 @@ pub fn swap<T>(x: &mut T, y: &mut T) {
666
/// let mut v: Vec<i32> = vec![1, 2];
667
///
668
/// let old_v = mem::replace(&mut v, vec![3, 4, 5]);
669
-/// assert_eq!(2, old_v.len());
670
-/// assert_eq!(3, v.len());
+/// assert_eq!(vec![1, 2], old_v);
+/// assert_eq!(vec![3, 4, 5], v);
671
/// ```
672
673
/// `replace` allows consumption of a struct field by replacing it with another value.
0 commit comments