1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

time: complete doc (#8070)

This commit is contained in:
crthpl
2021-01-13 06:30:54 -08:00
committed by GitHub
parent 204cc5fb01
commit 70ad49e186
7 changed files with 39 additions and 12 deletions

View File

@ -45,7 +45,7 @@ pub fn (t1 Time) >= (t2 Time) bool {
return t1 > t2 || t1 == t2
}
// Time subtract using eperator overloading
// Time subtract using operator overloading.
[inline]
pub fn (lhs Time) - (rhs Time) Duration {
lhs_micro := lhs.unix * 1000 * 1000 + u64(lhs.microsecond)