about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorTshepang Lekhonkhobe <tshepang@gmail.com>2016-01-14 20:54:49 +0200
committerTshepang Lekhonkhobe <tshepang@gmail.com>2016-01-14 20:54:49 +0200
commit80d2be947e9272a7ba87b7657d4d5c2ed6abd615 (patch)
tree96118e90f644817c4efd9519c748409a86076d7e /src/liballoc
parent02fbf31fb26e0b5eccf34cef8a5f8becef6f3ada (diff)
downloadrust-80d2be947e9272a7ba87b7657d4d5c2ed6abd615.tar.gz
rust-80d2be947e9272a7ba87b7657d4d5c2ed6abd615.zip
doc: "x" is used as variable name on this API, so avoid using it here
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/boxed.rs2
1 files changed, 1 insertions, 1 deletions
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<T> Box<T> {
     /// # Examples
     ///
     /// ```
-    /// let x = Box::new(5);
+    /// let five = Box::new(5);
     /// ```
     #[stable(feature = "rust1", since = "1.0.0")]
     #[inline(always)]