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:
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
Block a user