@@ -107,7 +107,7 @@ pub struct ComparisonError<T: PartialOrd> {
107107
108108impl < T : PartialOrd > ComparisonError < T > {
109109 /**
110- Construct a new instance of [`ComparisonError`] if the comparison defined by the input arguments fails.
110+ Constructs a new instance of [`ComparisonError`] if the comparison defined by the input arguments fails.
111111
112112 The `first_val` is compared to the `second_val` using the `comp_first_to_second` operator. If a `third_val` is given,
113113 it is compared to the second argument using the `comp_second_to_third` operator. If no `third_val` is given,
@@ -261,7 +261,7 @@ impl ComparisonOperator {
261261 }
262262
263263 /**
264- Compare the ordering of two values.
264+ Compares the ordering of two values.
265265
266266 Returns the output of the following comparison: `first_val self second_val`.
267267 This is best illustrated via the following examples:
@@ -319,25 +319,25 @@ fn example() -> Result<(), Box<dyn ComparisonErrorTrait>> {
319319 */
320320pub trait ComparisonErrorTrait : std:: error:: Error + Sync + Send + std:: any:: Any {
321321 /**
322- Write the representation of the first comparison value into the given formatter.
322+ Writes the representation of the first comparison value into the given formatter.
323323 This function is especially useful if a [`ComparisonError`] is used as a trait
324324 object [`ComparisonErrorTrait`] in order to erase the underlying type.
325325 */
326326 fn fmt_first_val ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result ;
327327
328328 /**
329- Write the representation of the second comparison value into the given formatter.
329+ Writes the representation of the second comparison value into the given formatter.
330330 This function is especially useful if a [`ComparisonError`] is used as a trait
331331 object [`ComparisonErrorTrait`] in order to erase the underlying type.
332332 */
333333 fn fmt_second_val ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result ;
334334
335335 /**
336- Write the representation of the third comparison value into the given formatter.
336+ Writes the representation of the third comparison value into the given formatter.
337337 This function is especially useful if a [`ComparisonError`] is used as a trait
338338 object [`ComparisonErrorTrait`] in order to erase the underlying type.
339339
340- If no third formatter exists, this function returns an error.
340+ If no third value exists, this function returns an error.
341341 */
342342 fn fmt_third_val ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result ;
343343
0 commit comments