From cd5bbaca80a640bf9d623b52b55d54e3e516b4a8 Mon Sep 17 00:00:00 2001 From: Cameron Sjo Date: Mon, 15 Aug 2016 11:14:50 -0500 Subject: [PATCH] Fix misspelling Fixed misspelling of "Uper" to "Upper". --- src/Humanizer/TimeSpanHumanizeExtensions.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Humanizer/TimeSpanHumanizeExtensions.cs b/src/Humanizer/TimeSpanHumanizeExtensions.cs index a384c9f19..522caaef7 100644 --- a/src/Humanizer/TimeSpanHumanizeExtensions.cs +++ b/src/Humanizer/TimeSpanHumanizeExtensions.cs @@ -44,13 +44,13 @@ public static string Humanize(this TimeSpan timeSpan, int precision = 1, Culture /// 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 CreateTheTimePartsWithUperAndLowerLimits(TimeSpan timespan, CultureInfo culture, TimeUnit maxUnit, TimeUnit minUnit) + private static IEnumerable CreateTheTimePartsWithUpperAndLowerLimits(TimeSpan timespan, CultureInfo culture, TimeUnit maxUnit, TimeUnit minUnit) { var cultureFormatter = Configurator.GetFormatter(culture); var firstValueFound = false; @@ -194,4 +194,4 @@ private static string ConcatenateTimeSpanParts(IEnumerable timeSpanParts return string.Join(collectionSeparator, timeSpanParts); } } -} \ No newline at end of file +}