Change #[must_use] message of Iterator

This commit is contained in:
Taiki Endo 2019-01-13 14:46:42 +09:00
parent 6d442938e0
commit a6535d78dc
3 changed files with 23 additions and 23 deletions

View file

@ -28,7 +28,7 @@ fn foo<T>(iter: T) where T: StreamingIterator, for<'a> T::Item<'a>: Display { /*
// Full example of enumerate iterator
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
#[must_use = "iterators are lazy and do nothing unless consumed"]
struct StreamEnumerate<I> {
iter: I,
count: usize,