time: add missing doc string to parse.v (#13933)
parent
2350dbbd57
commit
11ccf06441
|
@ -3,11 +3,13 @@
|
||||||
// that can be found in the LICENSE file.
|
// that can be found in the LICENSE file.
|
||||||
module time
|
module time
|
||||||
|
|
||||||
|
// TimeParseError represents a time parsing error.
|
||||||
pub struct TimeParseError {
|
pub struct TimeParseError {
|
||||||
Error
|
Error
|
||||||
code int
|
code int
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// msg implements the `IError.msg()` method for `TimeParseError`.
|
||||||
pub fn (err TimeParseError) msg() string {
|
pub fn (err TimeParseError) msg() string {
|
||||||
return 'Invalid time format code: $err.code'
|
return 'Invalid time format code: $err.code'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue