]> git.lizzy.rs Git - rust.git/commitdiff
use consistent terminology
authorTshepang Mbambo <tshepang@gmail.com>
Sat, 29 Oct 2022 07:23:12 +0000 (09:23 +0200)
committerTshepang Mbambo <tshepang@gmail.com>
Sat, 29 Oct 2022 07:23:12 +0000 (09:23 +0200)
I did not see other traits using the "interface" word

library/core/src/async_iter/async_iter.rs
library/core/src/iter/traits/iterator.rs

index 016a3685e850cd23e1a93e74369b265edc2a0219..12a47f9fc76265ff866d649e1f44b14a51fb6b11 100644 (file)
@@ -2,7 +2,7 @@
 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
index 789a87968d154d255c27017c25a4a70b468c0f36..83c7e8977e9f3e22e842bef6a0581afe7be174a9 100644 (file)
@@ -14,7 +14,7 @@
 
 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