diff options
| author | Brian Wignall <brianwignall@gmail.com> | 2019-11-26 22:19:54 -0500 |
|---|---|---|
| committer | Brian Wignall <brianwignall@gmail.com> | 2019-11-26 22:19:54 -0500 |
| commit | 16fabd8efd416a8b957e369b8be2470e1271af9e (patch) | |
| tree | 56aa5e9a690b55f0d28dd0556d918ddd23475bbc /src/libcore | |
| parent | a7d791b4503a86c1b16b4393ba7998ef8b561a27 (diff) | |
| download | rust-16fabd8efd416a8b957e369b8be2470e1271af9e.tar.gz rust-16fabd8efd416a8b957e369b8be2470e1271af9e.zip | |
Fix spelling typos
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/hint.rs | 2 | ||||
| -rw-r--r-- | src/libcore/intrinsics.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/hint.rs b/src/libcore/hint.rs index f68a3e5a76f..a295e65bb55 100644 --- a/src/libcore/hint.rs +++ b/src/libcore/hint.rs @@ -113,7 +113,7 @@ pub fn spin_loop() { pub fn black_box<T>(dummy: T) -> T { // We need to "use" the argument in some way LLVM can't introspect, and on // targets that support it we can typically leverage inline assembly to do - // this. LLVM's intepretation of inline assembly is that it's, well, a black + // this. LLVM's interpretation of inline assembly is that it's, well, a black // box. This isn't the greatest implementation since it probably deoptimizes // more than we want, but it's so far good enough. unsafe { diff --git a/src/libcore/intrinsics.rs b/src/libcore/intrinsics.rs index 6de20418bb2..e3dc5630c94 100644 --- a/src/libcore/intrinsics.rs +++ b/src/libcore/intrinsics.rs @@ -1279,7 +1279,7 @@ extern "rust-intrinsic" { /// undefined behavior when `x + y > T::max_value()` or `x + y < T::min_value()`. pub fn unchecked_add<T>(x: T, y: T) -> T; - /// Returns the result of an unchecked substraction, resulting in + /// Returns the result of an unchecked subtraction, resulting in /// undefined behavior when `x - y > T::max_value()` or `x - y < T::min_value()`. pub fn unchecked_sub<T>(x: T, y: T) -> T; |
