diff options
| author | Jubilee <46493976+workingjubilee@users.noreply.github.com> | 2024-06-02 12:58:10 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-02 12:58:10 -0700 |
| commit | 72ea7e92206cf2857c6eaa65d7fb6d043e29258f (patch) | |
| tree | eab9754308fadce9d2b5a46ec6759cd028c8d0a5 | |
| parent | 18a46be6d9c36f5ac7164644a398cf7b96f8175d (diff) | |
| parent | 361c6a5c3a613d3693e9d97da3d9530cc5b7626d (diff) | |
| download | rust-72ea7e92206cf2857c6eaa65d7fb6d043e29258f.tar.gz rust-72ea7e92206cf2857c6eaa65d7fb6d043e29258f.zip | |
Rollup merge of #125898 - RalfJung:typo, r=Nilstrieb
typo: depending from -> on
| -rw-r--r-- | library/core/src/str/pattern.rs | 2 | ||||
| -rw-r--r-- | library/std/src/sys/thread_local/fast_local/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/str/pattern.rs b/library/core/src/str/pattern.rs index cc66da25795..8988229be2e 100644 --- a/library/core/src/str/pattern.rs +++ b/library/core/src/str/pattern.rs @@ -342,7 +342,7 @@ pub unsafe trait ReverseSearcher<'a>: Searcher<'a> { /// /// `(&str)::Searcher` is not a `DoubleEndedSearcher` because /// the pattern `"aa"` in the haystack `"aaa"` matches as either -/// `"[aa]a"` or `"a[aa]"`, depending from which side it is searched. +/// `"[aa]a"` or `"a[aa]"`, depending on which side it is searched. pub trait DoubleEndedSearcher<'a>: ReverseSearcher<'a> {} ///////////////////////////////////////////////////////////////////////////// diff --git a/library/std/src/sys/thread_local/fast_local/mod.rs b/library/std/src/sys/thread_local/fast_local/mod.rs index 25379071cb7..152137d9270 100644 --- a/library/std/src/sys/thread_local/fast_local/mod.rs +++ b/library/std/src/sys/thread_local/fast_local/mod.rs @@ -1,7 +1,7 @@ //! Thread local support for platforms with native TLS. //! //! To achieve the best performance, we choose from four different types for -//! the TLS variable, depending from the method of initialization used (`const` +//! the TLS variable, depending on the method of initialization used (`const` //! or lazy) and the drop requirements of the stored type: //! //! | | `Drop` | `!Drop` | |
