From 11ccf06441cabd7600811a33b8b04565cb9ec3c5 Mon Sep 17 00:00:00 2001 From: Larpon Date: Tue, 5 Apr 2022 12:21:37 +0200 Subject: [PATCH] time: add missing doc string to parse.v (#13933) --- vlib/time/parse.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vlib/time/parse.v b/vlib/time/parse.v index dd1184c21e..d1e6840f81 100644 --- a/vlib/time/parse.v +++ b/vlib/time/parse.v @@ -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' }