Skip to content

Commit 1450e71

Browse files
committed
Use /// style comments
1 parent 8379890 commit 1450e71

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/libstd/util.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ pub fn id<T>(x: T) -> T { x }
2323
#[inline]
2424
pub fn ignore<T>(_x: T) { }
2525

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.
3028
#[inline]
3129
pub fn swap<T>(x: &mut T, y: &mut T) {
3230
unsafe {
@@ -47,10 +45,8 @@ pub fn swap<T>(x: &mut T, y: &mut T) {
4745
}
4846
}
4947

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.
5450
#[inline]
5551
pub fn replace<T>(dest: &mut T, mut src: T) -> T {
5652
swap(dest, &mut src);

0 commit comments

Comments
 (0)