about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2018-10-09 20:19:57 -0700
committerEsteban Küber <esteban@kuber.com.ar>2018-10-09 20:19:57 -0700
commita0fd68b088fc8ce869ad89bdea4c8ef4441f1874 (patch)
tree8da052788aa167abcfd3fa5f956db0266aae4eab
parent2305d02c1af360ac32f2679418621ade1c3469b0 (diff)
downloadrust-a0fd68b088fc8ce869ad89bdea4c8ef4441f1874.tar.gz
rust-a0fd68b088fc8ce869ad89bdea4c8ef4441f1874.zip
fix tidy
-rw-r--r--src/libcore/iter/iterator.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libcore/iter/iterator.rs b/src/libcore/iter/iterator.rs
index b3fa5abd1c4..9e68ab92882 100644
--- a/src/libcore/iter/iterator.rs
+++ b/src/libcore/iter/iterator.rs
@@ -33,7 +33,8 @@ fn _assert_is_object_safe(_: &dyn Iterator<Item=()>) {}
     on(
         _Self="[std::ops::Range<Idx>; 1]",
         label="if you meant to iterate between two values, remove the square brackets",
-        note="`[start..end]` is an array of one `Range`, you might have meant to have a `Range`: `start..end`"
+        note="`[start..end]` is an array of one `Range`, you might have meant to have a `Range`: \
+              `start..end`"
     ),
     on(
         _Self="&str",
@@ -50,7 +51,8 @@ fn _assert_is_object_safe(_: &dyn Iterator<Item=()>) {}
     ),
     on(
         _Self="{integral}",
-        note="if you want to iterate between `0` until a value `end`, use the range syntax: `0..end`"
+        note="if you want to iterate between `0` until a value `end`, use the range syntax: \
+              `0..end`"
     ),
     label="`{Self}` is not an iterator",
     message="`{Self}` is not an iterator"