Skip to content

Commit 7230f93

Browse files
committed
refactor: Modify comments
1 parent 4bc9fc3 commit 7230f93

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

helper.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ func format2layout(format string) string {
103103
return buffer.String()
104104
}
105105

106-
// 将 时区字符串 解析成 time.Location 对象
106+
// parses a timezone string as a time.Location instance.
107+
// 将 时区字符串 解析成 time.Location 实例
107108
func parseTimezone(timezone string) (*Location, error) {
108109
if timezone == "" {
109110
return nil, ErrEmptyTimezone()
@@ -116,7 +117,7 @@ func parseTimezone(timezone string) (*Location, error) {
116117
}
117118

118119
// parses a duration string as a time.Duration instance.
119-
// 将 时长字符串 解析成 time.Duration 对象
120+
// 将 时长字符串 解析成 time.Duration 实例
120121
func parseDuration(duration string) (Duration, error) {
121122
if duration == "" {
122123
return 0, ErrEmptyDuration()

0 commit comments

Comments
 (0)