From 8f59f4dcf6c4057ed1a1edc7ea4b6368c07891df Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Thu, 10 Aug 2023 10:57:51 +0700 Subject: [PATCH] docs: grammar: "Constrains ... to be" (Also pick up a small typo in a non-doc comment in the same area of code.) --- src/base/constraint.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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