Skip to content

Commit 10c3ea0

Browse files
authored
Rollup merge of rust-lang#146632 - ctz:jbp-adaptor-spelling, r=petrochenkov
Fix uses of "adaptor" These docs are in en_US, so "adapter" is the correct spelling (and indeed used in the next line.) A second commit comes along for the ride to fix other instances in non-rustdoc comments.
2 parents fc2bc91 + 5edb5f8 commit 10c3ea0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/iter/adapters/flatten.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ impl<T> OneShot for result::IterMut<'_, T> {}
779779
impl<T> OneShot for Empty<T> {}
780780
impl<T> OneShot for array::IntoIter<T, 0> {}
781781

782-
// These adaptors never increase the number of items.
782+
// These adapters never increase the number of items.
783783
// (There are more possible, but for now this matches BoundedSize above.)
784784
impl<I: OneShot> OneShot for Cloned<I> {}
785785
impl<I: OneShot> OneShot for Copied<I> {}

std/src/io/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ pub trait Read {
10811081
default_read_buf_exact(self, cursor)
10821082
}
10831083

1084-
/// Creates a "by reference" adaptor for this instance of `Read`.
1084+
/// Creates a "by reference" adapter for this instance of `Read`.
10851085
///
10861086
/// The returned adapter also implements `Read` and will simply borrow this
10871087
/// current reader.

0 commit comments

Comments
 (0)