diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2018-12-19 11:47:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-19 11:47:12 +0100 |
| commit | 39dc2c4e34f16fdd9d15a89cfc9d82ed60c67b17 (patch) | |
| tree | 5f54261d2717ecf1f51079b1ffe96444c77de699 /src/libcore | |
| parent | b08a52c8d4d9ae81e93577e0787aa95e0bd8752f (diff) | |
| parent | fca03e01405158c0efd05eba06bd99b12b7b691c (diff) | |
| download | rust-39dc2c4e34f16fdd9d15a89cfc9d82ed60c67b17.tar.gz rust-39dc2c4e34f16fdd9d15a89cfc9d82ed60c67b17.zip | |
Rollup merge of #56907 - rumajo:master, r=kennytm,Centril
Fix grammar in compiler error for array iterators This fixes a small grammatical mistake in the message the compiler gives when attempting to iterate directly over an array `arr` without calling `arr.iter()` or borrowing `&arr`.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/iter/iterator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/iter/iterator.rs b/src/libcore/iter/iterator.rs index c0b83a6868b..f77d8eb6f7c 100644 --- a/src/libcore/iter/iterator.rs +++ b/src/libcore/iter/iterator.rs @@ -87,7 +87,7 @@ fn _assert_is_object_safe(_: &dyn Iterator<Item=()>) {} on( _Self="[]", label="borrow the array with `&` or call `.iter()` on it to iterate over it", - note="arrays are not an iterators, but slices like the following are: `&[1, 2, 3]`" + note="arrays are not iterators, but slices like the following are: `&[1, 2, 3]`" ), on( _Self="{integral}", |
