nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib: Split collections into readable and writable
[nit.git]
/
tests
/
example_time.nit
diff --git
a/tests/example_time.nit
b/tests/example_time.nit
index
ae694d6
..
9c47159
100644
(file)
--- a/
tests/example_time.nit
+++ b/
tests/example_time.nit
@@
-39,9
+39,7
@@
class Time
# The quantity of tyme in human readable form (h:m)
redef meth to_s: String
do
- var s = hour.to_s # Get the h
- s.add(':')
- s.append((_min % 60).to_s) # Append the m
+ var s = "{hour}:{min%60}"
return s
end