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

fmt: add a space after + operator/method overload (#7453)

This commit is contained in:
Lukas Neubert
2020-12-21 20:20:00 +01:00
committed by GitHub
parent 74f7a1a549
commit 304aafdc50
5 changed files with 18 additions and 4 deletions

View File

@ -47,7 +47,7 @@ pub fn (t1 Time) ge(t2 Time) bool {
// Time subtract using eperator overloading
[inline]
pub fn (lhs Time) -(rhs Time) Duration {
pub fn (lhs Time) - (rhs Time) Duration {
lhs_micro := lhs.unix * 1000 * 1000 + u64(lhs.microsecond)
rhs_micro := rhs.unix * 1000 * 1000 + u64(rhs.microsecond)
return (i64(lhs_micro) - i64(rhs_micro)) * microsecond