Skip to content

Commit

Permalink
Fix misspelling
Browse files Browse the repository at this point in the history
Fixed misspelling of "Uper" to "Upper".
  • Loading branch information
cameronsjo authored Aug 15, 2016
1 parent 2f77816 commit cd5bbac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Humanizer/TimeSpanHumanizeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ public static string Humanize(this TimeSpan timeSpan, int precision = 1, Culture
/// <returns></returns>
public static string Humanize(this TimeSpan timeSpan, int precision, bool countEmptyUnits, CultureInfo culture = null, TimeUnit maxUnit = TimeUnit.Week, TimeUnit minUnit = TimeUnit.Millisecond, string collectionSeparator = ", ")
{
var timeParts = CreateTheTimePartsWithUperAndLowerLimits(timeSpan, culture, maxUnit, minUnit);
var timeParts = CreateTheTimePartsWithUpperAndLowerLimits(timeSpan, culture, maxUnit, minUnit);
timeParts = SetPrecisionOfTimeSpan(timeParts, precision, countEmptyUnits);

return ConcatenateTimeSpanParts(timeParts, collectionSeparator);
}

private static IEnumerable<string> CreateTheTimePartsWithUperAndLowerLimits(TimeSpan timespan, CultureInfo culture, TimeUnit maxUnit, TimeUnit minUnit)
private static IEnumerable<string> CreateTheTimePartsWithUpperAndLowerLimits(TimeSpan timespan, CultureInfo culture, TimeUnit maxUnit, TimeUnit minUnit)
{
var cultureFormatter = Configurator.GetFormatter(culture);
var firstValueFound = false;
Expand Down Expand Up @@ -194,4 +194,4 @@ private static string ConcatenateTimeSpanParts(IEnumerable<string> timeSpanParts
return string.Join(collectionSeparator, timeSpanParts);
}
}
}
}

0 comments on commit cd5bbac

Please sign in to comment.