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

pull/13948/head
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
1 changed files with 2 additions and 0 deletions

View File

@ -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'
} }