Skip to content

Commit 19ee60e

Browse files
committed
refactor: Update deprecated functions comment
1 parent 39d2f1d commit 19ee60e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

frozen.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ func SetTestNow(c *Carbon) {
2424
frozenNow.testNow = c
2525
}
2626

27-
// Deprecated: it will be removed in the future, use ClearTestNow instead.
2827
// CleanTestNow clears the test Carbon instance for now.
28+
// Deprecated: it will be removed in the future, use ClearTestNow instead.
2929
// 清除当前测试时间
30+
// 未来将移除,请用 ClearTestNow 替代
3031
func CleanTestNow() {
3132
ClearTestNow()
3233
}

parser.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,16 +185,18 @@ func ParseByFormats(value string, formats []string, timezone ...string) *Carbon
185185
return ParseByLayouts(value, layouts, tz)
186186
}
187187

188-
// Deprecated: it will be removed in the future, use ParseByLayouts instead.
189188
// ParseWithLayouts parses a time string as a Carbon instance by multiple fuzzy layouts.
189+
// Deprecated: it will be removed in the future, use ParseByLayouts instead.
190190
// 通过多个模糊的 布局模板 将时间字符串解析成 Carbon 实例
191+
// 未来将移除,请用 ParseByLayouts 替代
191192
func ParseWithLayouts(value string, layouts []string, timezone ...string) *Carbon {
192193
return ParseByLayouts(value, layouts, timezone...)
193194
}
194195

195-
// Deprecated: it will be removed in the future, use ParseByFormats instead.
196196
// ParseWithFormats parses a time string as a Carbon instance by multiple fuzzy formats.
197+
// Deprecated: it will be removed in the future, use ParseByFormats instead.
197198
// 通过多个模糊的 格式模板 将时间字符串解析成 Carbon 实例
199+
// 未来将移除,请用 ParseByFormats 替代
198200
func ParseWithFormats(value string, formats []string, timezone ...string) *Carbon {
199201
return ParseByFormats(value, formats, timezone...)
200202
}

0 commit comments

Comments
 (0)