Skip to content

Commit 295e10c

Browse files
committed
Fixing doc comment typos and missing blank line
1 parent 507ccc5 commit 295e10c

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

UnitsNet/CustomCode/UnitAbbreviationsCache.cs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public void MapUnitToAbbreviation<TUnitType>(TUnitType unit, params IEnumerable<
105105
MapUnitToAbbreviation(UnitKey.ForUnit(unit), abbreviations);
106106
}
107107

108-
/// <inheritdoc cref="MapUnitToAbbreviation{TUnitType}(TUnitType,IEnumerable{string})"/>>
108+
/// <inheritdoc cref="MapUnitToAbbreviation{TUnitType}(TUnitType,IEnumerable{string})"/>
109109
/// <param name="unitType">The unit enum type.</param>
110110
/// <param name="unitValue">The unit enum value.</param>
111111
/// <param name="formatProvider">The format provider to use for lookup. Defaults to <see cref="CultureInfo.CurrentCulture" /> if null.</param>
@@ -121,15 +121,15 @@ public void MapUnitToAbbreviation(Type unitType, int unitValue, IFormatProvider?
121121
MapUnitToAbbreviation(UnitKey.Create(unitType, unitValue), formatProvider, abbreviations);
122122
}
123123

124-
/// <inheritdoc cref="MapUnitToAbbreviation{TUnitType}(TUnitType,IEnumerable{string})"/>>
124+
/// <inheritdoc cref="MapUnitToAbbreviation{TUnitType}(TUnitType,IEnumerable{string})"/>
125125
/// <param name="unitKey">The unit key value.</param>
126126
/// <param name="abbreviations">Unit abbreviations to add.</param>
127127
public void MapUnitToAbbreviation(UnitKey unitKey, params IEnumerable<string> abbreviations)
128128
{
129129
MapUnitToAbbreviation(unitKey, CultureInfo.CurrentCulture, abbreviations);
130130
}
131131

132-
/// <inheritdoc cref="MapUnitToAbbreviation{TUnitType}(TUnitType,IEnumerable{string})"/>>
132+
/// <inheritdoc cref="MapUnitToAbbreviation{TUnitType}(TUnitType,IEnumerable{string})"/>
133133
/// <param name="unit">The unit enum value.</param>
134134
/// <param name="formatProvider">The format provider to use for lookup. Defaults to <see cref="CultureInfo.CurrentCulture" /> if null.</param>
135135
/// <param name="abbreviations">Unit abbreviations to add.</param>
@@ -140,7 +140,7 @@ public void MapUnitToAbbreviation<TUnitType>(TUnitType unit, IFormatProvider? fo
140140
MapUnitToAbbreviation(UnitKey.ForUnit(unit), formatProvider, abbreviations);
141141
}
142142

143-
/// <inheritdoc cref="MapUnitToAbbreviation{TUnitType}(TUnitType,IEnumerable{string})"/>>
143+
/// <inheritdoc cref="MapUnitToAbbreviation{TUnitType}(TUnitType,IEnumerable{string})"/>
144144
/// <param name="unitKey">The unit key value.</param>
145145
/// <param name="formatProvider">The format provider to use for lookup. Defaults to <see cref="CultureInfo.CurrentCulture" /> if null.</param>
146146
/// <param name="abbreviations">Unit abbreviations to add.</param>
@@ -149,7 +149,7 @@ public void MapUnitToAbbreviation(UnitKey unitKey, IFormatProvider? formatProvid
149149
MapUnitToAbbreviation(Quantities.GetUnitInfo(unitKey), formatProvider, abbreviations);
150150
}
151151

152-
/// <inheritdoc cref="MapUnitToAbbreviation{TUnitType}(TUnitType,IEnumerable{string})"/>>
152+
/// <inheritdoc cref="MapUnitToAbbreviation{TUnitType}(TUnitType,IEnumerable{string})"/>
153153
/// <param name="unitInfo">The info representing the unit.</param>
154154
/// <param name="formatProvider">The format provider to use for lookup. Defaults to <see cref="CultureInfo.CurrentCulture" /> if null.</param>
155155
/// <param name="abbreviations">Unit abbreviations to add.</param>
@@ -180,15 +180,15 @@ public void MapUnitToDefaultAbbreviation<TUnitType>(TUnitType unit, string abbre
180180
MapUnitToDefaultAbbreviation(UnitKey.ForUnit(unit), abbreviation);
181181
}
182182

183-
/// <inheritdoc cref="MapUnitToDefaultAbbreviation{TUnitType}(TUnitType,string)"/>>
183+
/// <inheritdoc cref="MapUnitToDefaultAbbreviation{TUnitType}(TUnitType,string)"/>
184184
/// <param name="unitKey">The unit key value.</param>
185185
/// <param name="abbreviation">Unit abbreviations to add as default.</param>
186186
public void MapUnitToDefaultAbbreviation(UnitKey unitKey, string abbreviation)
187187
{
188188
MapUnitToDefaultAbbreviation(unitKey, CultureInfo.CurrentCulture, abbreviation);
189189
}
190190

191-
/// <inheritdoc cref="MapUnitToDefaultAbbreviation{TUnitType}(TUnitType,string)"/>>
191+
/// <inheritdoc cref="MapUnitToDefaultAbbreviation{TUnitType}(TUnitType,string)"/>
192192
/// <param name="unit">The unit enum value.</param>
193193
/// <param name="formatProvider">The format provider to use for lookup. Defaults to <see cref="CultureInfo.CurrentCulture" /> if null.</param>
194194
/// <param name="abbreviation">Unit abbreviation to add as default.</param>
@@ -199,7 +199,7 @@ public void MapUnitToDefaultAbbreviation<TUnitType>(TUnitType unit, IFormatProvi
199199
MapUnitToDefaultAbbreviation(UnitKey.ForUnit(unit), formatProvider, abbreviation);
200200
}
201201

202-
/// <inheritdoc cref="MapUnitToDefaultAbbreviation{TUnitType}(TUnitType,string)"/>>
202+
/// <inheritdoc cref="MapUnitToDefaultAbbreviation{TUnitType}(TUnitType,string)"/>
203203
/// <param name="unitType">The unit enum type.</param>
204204
/// <param name="unitValue">The unit enum value.</param>
205205
/// <param name="formatProvider">The format provider to use for lookup. Defaults to <see cref="CultureInfo.CurrentCulture" /> if null.</param>
@@ -215,7 +215,7 @@ public void MapUnitToDefaultAbbreviation(Type unitType, int unitValue, IFormatPr
215215
MapUnitToDefaultAbbreviation(UnitKey.Create(unitType, unitValue), formatProvider, abbreviation);
216216
}
217217

218-
/// <inheritdoc cref="MapUnitToDefaultAbbreviation{TUnitType}(TUnitType,string)"/>>
218+
/// <inheritdoc cref="MapUnitToDefaultAbbreviation{TUnitType}(TUnitType,string)"/>
219219
/// <param name="unitKey">The unit key value.</param>
220220
/// <param name="formatProvider">The format provider to use for lookup. Defaults to <see cref="CultureInfo.CurrentCulture" /> if null.</param>
221221
/// <param name="abbreviation">Unit abbreviation to add as default.</param>
@@ -224,7 +224,7 @@ public void MapUnitToDefaultAbbreviation(UnitKey unitKey, IFormatProvider? forma
224224
MapUnitToDefaultAbbreviation(Quantities.GetUnitInfo(unitKey), formatProvider, abbreviation);
225225
}
226226

227-
/// <inheritdoc cref="MapUnitToDefaultAbbreviation{TUnitType}(TUnitType,string)"/>>
227+
/// <inheritdoc cref="MapUnitToDefaultAbbreviation{TUnitType}(TUnitType,string)"/>
228228
/// <param name="unitInfo">The info representing the unit.</param>
229229
/// <param name="formatProvider">The format provider to use for lookup. Defaults to <see cref="CultureInfo.CurrentCulture" /> if null.</param>
230230
/// <param name="abbreviation">Unit abbreviation to add as default.</param>
@@ -372,10 +372,11 @@ public IReadOnlyList<string> GetUnitAbbreviations(UnitKey unitKey, IFormatProvid
372372
{
373373
return GetUnitAbbreviations(Quantities.GetUnitInfo(unitKey), formatProvider);
374374
}
375+
375376
/// <summary>
376377
/// Retrieves the unit abbreviations for a specified unit info and optional format provider.
377378
/// </summary>
378-
/// <param name="unitInfo">The key representing the unit info and value.</param>
379+
/// <param name="unitInfo">The unit info object representing the unit.</param>
379380
/// <param name="formatProvider">The format provider to use for lookup. Defaults to <see cref="CultureInfo.CurrentCulture" /> if null.</param>
380381
/// <returns>A read-only collection of unit abbreviation strings.</returns>
381382
/// <exception cref="UnitNotFoundException">

0 commit comments

Comments
 (0)