Skip to content

Commit 2115e9a

Browse files
committed
refactor: Update comment for deprecated function
1 parent 418226b commit 2115e9a

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

frozen.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ func SetTestNow(c Carbon) {
2222
frozenNow.testNow = c
2323
}
2424

25-
// Deprecated: CleanTestNow will be removed in the future, use ClearTestNow instead.
2625
// CleanTestNow clears the test Carbon instance for now.
26+
//
27+
// Deprecated: it will be removed in the future, use ClearTestNow instead.
2728
func CleanTestNow() {
2829
ClearTestNow()
2930
}
@@ -36,8 +37,9 @@ func ClearTestNow() {
3637
frozenNow.isFrozen = false
3738
}
3839

39-
// Deprecated: IsSetTestNow will be removed in the future, use IsTestNow instead.
4040
// IsSetTestNow report whether there is testing time now.
41+
//
42+
// Deprecated: it will be removed in the future, use IsTestNow instead.
4143
func IsSetTestNow() bool {
4244
return IsTestNow()
4345
}

parser.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,16 @@ func ParseByFormats(value string, formats []string, timezone ...string) Carbon {
180180
return ParseByLayouts(value, layouts, tz)
181181
}
182182

183-
// Deprecated: ParseWithLayouts will be removed in the future, use ParseByLayouts instead.
184183
// ParseWithLayouts parses a time string as a Carbon instance by multiple fuzzy layouts.
184+
//
185+
// Deprecated: it will be removed in the future, use ParseByLayouts instead.
185186
func ParseWithLayouts(value string, layouts []string, timezone ...string) Carbon {
186187
return ParseByLayouts(value, layouts, timezone...)
187188
}
188189

189-
// Deprecated: ParseWithFormats will be removed in the future, use ParseByFormats instead.
190190
// ParseWithFormats parses a time string as a Carbon instance by multiple fuzzy formats.
191+
//
192+
// Deprecated: it will be removed in the future, use ParseByFormats instead.
191193
func ParseWithFormats(value string, formats []string, timezone ...string) Carbon {
192194
return ParseByFormats(value, formats, timezone...)
193195
}

0 commit comments

Comments
 (0)