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

cgen: fix tests

This commit is contained in:
Alexander Medvednikov
2020-03-19 11:23:02 +01:00
parent e457bedaa7
commit b2f05e56b8
3 changed files with 14 additions and 2 deletions

View File

@ -19,7 +19,7 @@ pub fn parse(s string) ?Time {
minute := hms[1]
second := hms[2]
return new_time(Time{
res := new_time(Time{
year: ymd[0].int()
month: ymd[1].int()
day: ymd[2].int()
@ -27,6 +27,7 @@ pub fn parse(s string) ?Time {
minute: minute.int()
second: second.int()
})
return res
}
// parse_rfc2822 returns time from a date string in RFC 2822 datetime format.