Skip to content

Commit db95ddf

Browse files
rohahnangularsen
authored andcommitted
Fix typos (#706)
1 parent 665ea4e commit db95ddf

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ private void GenerateInstanceConstructors()
158158
/// <summary>
159159
/// Creates the quantity with the given numeric value and unit.
160160
/// </summary>
161-
/// <param name=""numericValue"">The numeric value to contruct this quantity with.</param>
162-
/// <param name=""unit"">The unit representation to contruct this quantity with.</param>
161+
/// <param name=""numericValue"">The numeric value to construct this quantity with.</param>
162+
/// <param name=""unit"">The unit representation to construct this quantity with.</param>
163163
/// <exception cref=""ArgumentException"">If value is NaN or Infinity.</exception>
164164
public {_quantity.Name}({_quantity.BaseType} numericValue, {_unitEnumName} unit)
165165
{{
@@ -180,7 +180,7 @@ private void GenerateInstanceConstructors()
180180
/// Creates an instance of the quantity with the given numeric value in units compatible with the given <see cref=""UnitSystem""/>.
181181
/// If multiple compatible units were found, the first match is used.
182182
/// </summary>
183-
/// <param name=""numericValue"">The numeric value to contruct this quantity with.</param>
183+
/// <param name=""numericValue"">The numeric value to construct this quantity with.</param>
184184
/// <param name=""unitSystem"">The unit system to create the quantity with.</param>
185185
/// <exception cref=""ArgumentNullException"">The given <see cref=""UnitSystem""/> is null.</exception>
186186
/// <exception cref=""ArgumentException"">No unit was found for the given <see cref=""UnitSystem""/>.</exception>
@@ -983,7 +983,7 @@ public string ToString([CanBeNull] IFormatProvider provider, int significantDigi
983983
/// Get string representation of value and unit.
984984
/// </summary>
985985
/// <param name=""format"">String format to use. Default: ""{{0:0.##}} {{1}} for value and unit abbreviation respectively.""</param>
986-
/// <param name=""args"">Arguments for string format. Value and unit are implictly included as arguments 0 and 1.</param>
986+
/// <param name=""args"">Arguments for string format. Value and unit are implicitly included as arguments 0 and 1.</param>
987987
/// <returns>String representation.</returns>
988988
/// <param name=""provider"">Format to use for localization and number formatting. Defaults to <see cref=""CultureInfo.CurrentUICulture"" /> if null.</param>
989989
[Obsolete(""This method is deprecated and will be removed at a future release. Please use string.Format()."")]

CodeGen/Generators/UnitsNetWrcGen/QuantityGenerator.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ private void GenerateInstanceConstructors()
140140
/// <summary>
141141
/// Creates the quantity with the given numeric value and unit.
142142
/// </summary>
143-
/// <param name=""numericValue"">The numeric value to contruct this quantity with.</param>
144-
/// <param name=""unit"">The unit representation to contruct this quantity with.</param>
143+
/// <param name=""numericValue"">The numeric value to construct this quantity with.</param>
144+
/// <param name=""unit"">The unit representation to construct this quantity with.</param>
145145
/// <remarks>Value parameter cannot be named 'value' due to constraint when targeting Windows Runtime Component.</remarks>
146146
/// <exception cref=""ArgumentException"">If value is NaN or Infinity.</exception>
147147
private {_quantity.Name}({_quantity.BaseType} numericValue, {_unitEnumName} unit)
@@ -713,7 +713,7 @@ public string ToString(string cultureName, int significantDigitsAfterRadix)
713713
/// Get string representation of value and unit.
714714
/// </summary>
715715
/// <param name=""format"">String format to use. Default: ""{{0:0.##}} {{1}} for value and unit abbreviation respectively.""</param>
716-
/// <param name=""args"">Arguments for string format. Value and unit are implictly included as arguments 0 and 1.</param>
716+
/// <param name=""args"">Arguments for string format. Value and unit are implicitly included as arguments 0 and 1.</param>
717717
/// <returns>String representation.</returns>
718718
/// <param name=""cultureName"">Name of culture (ex: ""en-US"") to use for localization and number formatting. Defaults to <see cref=""GlobalConfiguration.DefaultCulture"" /> if null.</param>
719719
public string ToString([CanBeNull] string cultureName, [NotNull] string format, [NotNull] params object[] args)

0 commit comments

Comments
 (0)