diff --git a/impl/doc/try_from.md b/impl/doc/try_from.md index 41c2692a..10dc5c50 100644 --- a/impl/doc/try_from.md +++ b/impl/doc/try_from.md @@ -9,7 +9,7 @@ Derive `TryFrom` allows you to convert enum discriminants into their correspondi By default, a `TryFrom` is generated, matching the [type of the discriminant](https://doc.rust-lang.org/reference/items/enumerations.html#discriminants). The type can be changed with a `#[repr(u/i*)]` attribute, e.g., `#[repr(u8)]` or `#[repr(i32)]`. -Only field-less variants can be constructed from their variant, therefor the `TryFrom` implementation will return an error for a discriminant representing a variant with fields. +Only field-less variants can be constructed from their variant, therefore the `TryFrom` implementation will return an error for a discriminant representing a variant with fields. ```rust # #[cfg(msrv)] fn main() {} // TODO: Remove once MSRV bumps 1.66 or higher. diff --git a/src/convert.rs b/src/convert.rs index a625f504..9da11957 100644 --- a/src/convert.rs +++ b/src/convert.rs @@ -43,7 +43,7 @@ mod try_from { } #[cfg(feature = "std")] - // `T` should only be an integer type and therefor be debug + // `T` should only be an integer type and therefore be debug impl std::error::Error for TryFromReprError {} }