Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 494f05c

Browse files
authoredJun 2, 2024
Rollup merge of rust-lang#125898 - RalfJung:typo, r=Nilstrieb
typo: depending from -> on
2 parents 7881d33 + 1c707b6 commit 494f05c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎core/src/str/pattern.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ pub unsafe trait ReverseSearcher<'a>: Searcher<'a> {
342342
///
343343
/// `(&str)::Searcher` is not a `DoubleEndedSearcher` because
344344
/// the pattern `"aa"` in the haystack `"aaa"` matches as either
345-
/// `"[aa]a"` or `"a[aa]"`, depending from which side it is searched.
345+
/// `"[aa]a"` or `"a[aa]"`, depending on which side it is searched.
346346
pub trait DoubleEndedSearcher<'a>: ReverseSearcher<'a> {}
347347

348348
/////////////////////////////////////////////////////////////////////////////

‎std/src/sys/thread_local/fast_local/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Thread local support for platforms with native TLS.
22
//!
33
//! To achieve the best performance, we choose from four different types for
4-
//! the TLS variable, depending from the method of initialization used (`const`
4+
//! the TLS variable, depending on the method of initialization used (`const`
55
//! or lazy) and the drop requirements of the stored type:
66
//!
77
//! | | `Drop` | `!Drop` |

0 commit comments

Comments
 (0)
Failed to load comments.