diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2018-02-09 22:18:06 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2018-02-10 00:56:33 +0100 |
| commit | e6f910e31e578301cc8608f049f1763172569ca8 (patch) | |
| tree | bfbcc3373d36baa7fd43af0b5386fe67bb25008d /src/libcore | |
| parent | 3bcda48a30b21e46b81a7989deb30a3ba85fb918 (diff) | |
| download | rust-e6f910e31e578301cc8608f049f1763172569ca8.tar.gz rust-e6f910e31e578301cc8608f049f1763172569ca8.zip | |
fix typo: substract -> subtract.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/ops/arith.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/ops/arith.rs b/src/libcore/ops/arith.rs index d0d0c09869e..88db019b02f 100644 --- a/src/libcore/ops/arith.rs +++ b/src/libcore/ops/arith.rs @@ -181,7 +181,7 @@ add_impl! { usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 f32 f64 } /// ``` #[lang = "sub"] #[stable(feature = "rust1", since = "1.0.0")] -#[rustc_on_unimplemented(message="cannot substract `{RHS}` from `{Self}`", +#[rustc_on_unimplemented(message="cannot subtract `{RHS}` from `{Self}`", label="no implementation for `{Self} - {RHS}`")] pub trait Sub<RHS=Self> { /// The resulting type after applying the `-` operator. @@ -716,7 +716,7 @@ add_assign_impl! { usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 f32 f64 } /// ``` #[lang = "sub_assign"] #[stable(feature = "op_assign_traits", since = "1.8.0")] -#[rustc_on_unimplemented(message="cannot substract-assign `{Rhs}` from `{Self}`", +#[rustc_on_unimplemented(message="cannot subtract-assign `{Rhs}` from `{Self}`", label="no implementation for `{Self} -= {Rhs}`")] pub trait SubAssign<Rhs=Self> { /// Performs the `-=` operation. |
