Skip to content

Commit 80d2be9

Browse files
committed
doc: "x" is used as variable name on this API, so avoid using it here
1 parent 02fbf31 commit 80d2be9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/boxed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ impl<T> Box<T> {
227227
/// # Examples
228228
///
229229
/// ```
230-
/// let x = Box::new(5);
230+
/// let five = Box::new(5);
231231
/// ```
232232
#[stable(feature = "rust1", since = "1.0.0")]
233233
#[inline(always)]

0 commit comments

Comments
 (0)