Skip to content

Commit 6cf6960

Browse files
danieletorellilrytz
authored andcommitted
Add m label for minutes in Duration.timeUnitLabels
1 parent e117a39 commit 6cf6960

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/scala/concurrent/duration/Duration.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ object Duration {
3838
* Construct a finite duration from the given length and time unit, where the latter is
3939
* looked up in a list of string representation. Valid choices are:
4040
*
41-
* `d, day, h, hour, min, minute, s, sec, second, ms, milli, millisecond, µs, micro, microsecond, ns, nano, nanosecond`
41+
* `d, day, h, hour, m, min, minute, s, sec, second, ms, milli, millisecond, µs, micro, microsecond, ns, nano, nanosecond`
4242
* and their pluralized forms (for every but the first mentioned form of each unit, i.e. no "ds", but "days").
4343
*/
4444
def apply(length: Long, unit: String): FiniteDuration = new FiniteDuration(length, Duration.timeUnit(unit))
@@ -80,7 +80,7 @@ object Duration {
8080
private[this] val timeUnitLabels = List(
8181
DAYS -> "d day",
8282
HOURS -> "h hour",
83-
MINUTES -> "min minute",
83+
MINUTES -> "m min minute",
8484
SECONDS -> "s sec second",
8585
MILLISECONDS -> "ms milli millisecond",
8686
MICROSECONDS -> "µs micro microsecond",

0 commit comments

Comments
 (0)