about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTshepang Mbambo <tshepang@gmail.com>2022-10-29 09:23:12 +0200
committerTshepang Mbambo <tshepang@gmail.com>2022-10-29 09:23:12 +0200
commita36a37e5a8f3791d32435f58b34a110b68e4633b (patch)
treecf37fbf82e4efa584e36b30b5ed311beca921193
parent33b55ac39fa633d0983fad014469e1036669bf28 (diff)
downloadrust-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.rs2
-rw-r--r--library/core/src/iter/traits/iterator.rs2
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