diff --git a/src/base/constraint.rs b/src/base/constraint.rs index 5aecc279..1960cb54 100644 --- a/src/base/constraint.rs +++ b/src/base/constraint.rs @@ -6,7 +6,7 @@ use crate::base::dimension::{Dim, DimName, Dyn}; #[derive(Copy, Clone, Debug)] pub struct ShapeConstraint; -/// Constraints `C1` and `R2` to be equivalent. +/// Constrains `C1` and `R2` to be equivalent. pub trait AreMultipliable: DimEq {} impl AreMultipliable for ShapeConstraint where @@ -14,7 +14,7 @@ impl AreMultipliable for Sha { } -/// Constraints `D1` and `D2` to be equivalent. +/// Constrains `D1` and `D2` to be equivalent. pub trait DimEq { /// This is either equal to `D1` or `D2`, always choosing the one (if any) which is a type-level /// constant. @@ -35,7 +35,7 @@ impl DimEq for ShapeConstraint { macro_rules! equality_trait_decl( ($($doc: expr, $Trait: ident),* $(,)*) => {$( - // XXX: we can't do something like `DimEq for D2` because we would require a blancket impl… + // XXX: we can't do something like `DimEq for D2` because we would require a blanket impl… #[doc = $doc] pub trait $Trait: DimEq + DimEq { /// This is either equal to `D1` or `D2`, always choosing the one (if any) which is a type-level @@ -58,17 +58,17 @@ macro_rules! equality_trait_decl( ); equality_trait_decl!( - "Constraints `D1` and `D2` to be equivalent. \ + "Constrains `D1` and `D2` to be equivalent. \ They are both assumed to be the number of \ rows of a matrix.", SameNumberOfRows, - "Constraints `D1` and `D2` to be equivalent. \ + "Constrains `D1` and `D2` to be equivalent. \ They are both assumed to be the number of \ columns of a matrix.", SameNumberOfColumns ); -/// Constraints D1 and D2 to be equivalent, where they both designate dimensions of algebraic +/// Constrains D1 and D2 to be equivalent, where they both designate dimensions of algebraic /// entities (e.g. square matrices). pub trait SameDimension: SameNumberOfRows + SameNumberOfColumns