Skip to content

Commit e81cadb

Browse files
committed
Correct typo
1 parent 8760818 commit e81cadb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/slice/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2321,7 +2321,7 @@ impl<T> [T] {
23212321
}
23222322

23232323
/// Binary searches this slice for a given element.
2324-
/// This behaves similar to [`contains`] if this slice is sorted.
2324+
/// This behaves similarly to [`contains`] if this slice is sorted.
23252325
///
23262326
/// If the value is found then [`Result::Ok`] is returned, containing the
23272327
/// index of the matching element. If there are multiple matches, then any

std/src/sys/windows/cmath.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ mod shims {
4444
}
4545

4646
// On 32-bit x86 MSVC these functions aren't defined, so we just define shims
47-
// which promote everything for f64, perform the calculation, and then demote
47+
// which promote everything to f64, perform the calculation, and then demote
4848
// back to f32. While not precisely correct should be "correct enough" for now.
4949
#[cfg(all(target_env = "msvc", target_arch = "x86"))]
5050
mod shims {

0 commit comments

Comments
 (0)