diff options
| author | Tshepang Mbambo <tshepang@gmail.com> | 2022-10-29 09:23:12 +0200 |
|---|---|---|
| committer | Tshepang Mbambo <tshepang@gmail.com> | 2022-10-29 09:23:12 +0200 |
| commit | a36a37e5a8f3791d32435f58b34a110b68e4633b (patch) | |
| tree | cf37fbf82e4efa584e36b30b5ed311beca921193 | |
| parent | 33b55ac39fa633d0983fad014469e1036669bf28 (diff) | |
| download | rust-a36a37e5a8f3791d32435f58b34a110b68e4633b.tar.gz rust-a36a37e5a8f3791d32435f58b34a110b68e4633b.zip | |
use consistent terminology
I did not see other traits using the "interface" word
| -rw-r--r-- | library/core/src/async_iter/async_iter.rs | 2 | ||||
| -rw-r--r-- | library/core/src/iter/traits/iterator.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/async_iter/async_iter.rs b/library/core/src/async_iter/async_iter.rs index 016a3685e85..12a47f9fc76 100644 --- a/library/core/src/async_iter/async_iter.rs +++ b/library/core/src/async_iter/async_iter.rs @@ -2,7 +2,7 @@ use crate::ops::DerefMut; use crate::pin::Pin; use crate::task::{Context, Poll}; -/// An interface for dealing with asynchronous iterators. +/// A trait for dealing with asynchronous iterators. /// /// This is the main async iterator trait. For more about the concept of async iterators /// generally, please see the [module-level documentation]. In particular, you diff --git a/library/core/src/iter/traits/iterator.rs b/library/core/src/iter/traits/iterator.rs index 789a87968d1..83c7e8977e9 100644 --- a/library/core/src/iter/traits/iterator.rs +++ b/library/core/src/iter/traits/iterator.rs @@ -14,7 +14,7 @@ use super::super::{ fn _assert_is_object_safe(_: &dyn Iterator<Item = ()>) {} -/// An interface for dealing with iterators. +/// A trait for dealing with iterators. /// /// This is the main iterator trait. For more about the concept of iterators /// generally, please see the [module-level documentation]. In particular, you |
