Skip to content

Commit ad55f21

Browse files
committed
fix some typos in std::sync and in the compiler
1 parent 1040fcb commit ad55f21

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/rustc_resolve/src/late.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4276,7 +4276,7 @@ impl<'a, 'ast, 'ra, 'tcx> LateResolutionVisitor<'a, 'ast, 'ra, 'tcx> {
42764276
if path.len() == 2
42774277
&& let [segment] = prefix_path
42784278
{
4279-
// Delay to check whether methond name is an associated function or not
4279+
// Delay to check whether method name is an associated function or not
42804280
// ```
42814281
// let foo = Foo {};
42824282
// foo::bar(); // possibly suggest to foo.bar();

library/std/src/sync/nonpoison/mutex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pub struct MutexGuard<'a, T: ?Sized + 'a> {
100100
lock: &'a Mutex<T>,
101101
}
102102

103-
/// A [`MutexGuard`] is not `Send` to maximize platform portablity.
103+
/// A [`MutexGuard`] is not `Send` to maximize platform portability.
104104
///
105105
/// On platforms that use POSIX threads (commonly referred to as pthreads) there is a requirement to
106106
/// release mutex locks on the same thread they were acquired.

library/std/src/sync/poison/mutex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ pub struct MutexGuard<'a, T: ?Sized + 'a> {
279279
poison: poison::Guard,
280280
}
281281

282-
/// A [`MutexGuard`] is not `Send` to maximize platform portablity.
282+
/// A [`MutexGuard`] is not `Send` to maximize platform portability.
283283
///
284284
/// On platforms that use POSIX threads (commonly referred to as pthreads) there is a requirement to
285285
/// release mutex locks on the same thread they were acquired.

0 commit comments

Comments
 (0)