From fca03e01405158c0efd05eba06bd99b12b7b691c Mon Sep 17 00:00:00 2001 From: Matthew Russell Date: Mon, 17 Dec 2018 02:27:41 +0000 Subject: Fix grammar in compiler error for array iterators --- src/libcore/iter/iterator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libcore') 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) {} 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}", -- cgit 1.4.1-3-g733a5