Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[feature] stdlib/duration: Added @stringifier for Duration.duration

  • Loading branch information...
commit 8b10bce4a312f029da60161824a3524129fc3021 1 parent e51ec5d
@akoprow akoprow authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  stdlib/core/date/duration.opa
View
2  stdlib/core/date/duration.opa
@@ -699,7 +699,7 @@ Duration = {{
* @param duration a duration to be printed
* @return string representation of [duration] using {!default_printer} format.
**/
- to_string(duration : Duration.duration) : string =
+ @stringifier(Duration.duration) to_string(duration : Duration.duration) : string =
to_formatted_string(default_printer, duration)
/**
Please sign in to comment.
Something went wrong with that request. Please try again.