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

time: add missing doc string to parse.v (#13933)

This commit is contained in:
Larpon 2022-04-05 12:21:37 +02:00 committed by GitHub
parent 2350dbbd57
commit 11ccf06441
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,11 +3,13 @@
// that can be found in the LICENSE file.
module time
// TimeParseError represents a time parsing error.
pub struct TimeParseError {
Error
code int
}
// msg implements the `IError.msg()` method for `TimeParseError`.
pub fn (err TimeParseError) msg() string {
return 'Invalid time format code: $err.code'
}