Skip to content

Commit

Permalink
Merge pull request Humanizr#581 from cameron-sjo/dev
Browse files Browse the repository at this point in the history
Fix misspelling
  • Loading branch information
hazzik authored Aug 15, 2016
2 parents 2f77816 + cd5bbac commit 6a0e77c
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 6a0e77c

Please sign in to comment.