From 7d446ce555db74efcab58048ba7d2b8cd21dcca4 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Thu, 14 Jan 2016 20:52:51 +0200 Subject: doc: "moves" has a specific meaning in Rust, so avoid using it here --- src/liballoc/boxed.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/liballoc') diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index efc28be92a4..6979c0ebb2d 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -222,7 +222,7 @@ impl Drop for IntermediateBox { } impl Box { - /// Allocates memory on the heap and then moves `x` into it. + /// Allocates memory on the heap and then places `x` into it. /// /// # Examples /// -- cgit 1.4.1-3-g733a5 From 80d2be947e9272a7ba87b7657d4d5c2ed6abd615 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Thu, 14 Jan 2016 20:54:49 +0200 Subject: doc: "x" is used as variable name on this API, so avoid using it here --- src/liballoc/boxed.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/liballoc') diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index efc28be92a4..aa0665182cc 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -227,7 +227,7 @@ impl Box { /// # Examples /// /// ``` - /// let x = Box::new(5); + /// let five = Box::new(5); /// ``` #[stable(feature = "rust1", since = "1.0.0")] #[inline(always)] -- cgit 1.4.1-3-g733a5 From f7fb0af729f77b27aa69f8e8f24279de19b12d12 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Thu, 14 Jan 2016 21:08:15 +0200 Subject: doc: that suffix serves as mere distraction --- src/liballoc/boxed.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/liballoc') diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index efc28be92a4..78b55d6491e 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -266,7 +266,7 @@ impl Box { /// # Examples /// /// ``` - /// let seventeen = Box::new(17u32); + /// let seventeen = Box::new(17); /// let raw = Box::into_raw(seventeen); /// let boxed_again = unsafe { Box::from_raw(raw) }; /// ``` -- cgit 1.4.1-3-g733a5