File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,8 @@ pub fn id<T>(x: T) -> T { x }
23
23
#[ inline]
24
24
pub fn ignore < T > ( _x : T ) { }
25
25
26
- /**
27
- * Swap the values at two mutable locations of the same type, without
28
- * deinitialising or copying either one.
29
- */
26
+ /// Swap the values at two mutable locations of the same type, without
27
+ /// deinitialising or copying either one.
30
28
#[ inline]
31
29
pub fn swap < T > ( x : & mut T , y : & mut T ) {
32
30
unsafe {
@@ -47,10 +45,8 @@ pub fn swap<T>(x: &mut T, y: &mut T) {
47
45
}
48
46
}
49
47
50
- /**
51
- * Replace the value at a mutable location with a new one, returning the old
52
- * value, without deinitialising or copying either one.
53
- */
48
+ /// Replace the value at a mutable location with a new one, returning the old
49
+ /// value, without deinitialising or copying either one.
54
50
#[ inline]
55
51
pub fn replace < T > ( dest : & mut T , mut src : T ) -> T {
56
52
swap ( dest, & mut src) ;
You can’t perform that action at this time.
0 commit comments