Skip to content

Commit 815aebd

Browse files
Rollup merge of rust-lang#33402 - shepmaster:copied-variable-name, r=Manishearth
Replace copy-pasted variable name with relevant one
2 parents 884e05e + a11ddb3 commit 815aebd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcollections/slice.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ impl<T> [T] {
419419
///
420420
/// ```rust
421421
/// let v = &[1, 2, 3, 4, 5];
422-
/// for win in v.chunks(2) {
423-
/// println!("{:?}", win);
422+
/// for chunk in v.chunks(2) {
423+
/// println!("{:?}", chunk);
424424
/// }
425425
/// ```
426426
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)