Skip to content

Commit 17647e0

Browse files
authored
Merge pull request #187 from alexandear-org/docs/improve-deprecated
📒 docs: improve deprecated comments
2 parents ea2559f + a6f83d2 commit 17647e0

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

bytes.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,20 @@ import (
1010

1111
// ToLowerBytes converts an ASCII byte slice to lower-case in-place.
1212
//
13-
// Deprecated: use package "github.com/gofiber/utils/v2/bytes" and call bytes.UnsafeToLower.
13+
// Deprecated: use [github.com/gofiber/utils/v2/bytes.UnsafeToLower] instead.
1414
// This wrapper keeps backward compatibility by mutating the provided slice.
15+
//
16+
//go:fix inline
1517
func ToLowerBytes(b []byte) []byte {
1618
return casebytes.UnsafeToLower(b)
1719
}
1820

1921
// ToUpperBytes converts an ASCII byte slice to upper-case in-place.
2022
//
21-
// Deprecated: use package "github.com/gofiber/utils/v2/bytes" and call bytes.UnsafeToUpper.
23+
// Deprecated: use [github.com/gofiber/utils/v2/bytes.UnsafeToUpper] instead.
2224
// This wrapper keeps backward compatibility by mutating the provided slice.
25+
//
26+
//go:fix inline
2327
func ToUpperBytes(b []byte) []byte {
2428
return casebytes.UnsafeToUpper(b)
2529
}

strings.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,18 @@ import (
1010

1111
// ToLower converts ascii string to lower-case.
1212
//
13-
// Deprecated: use package "github.com/gofiber/utils/v2/strings" and call strings.ToLower.
13+
// Deprecated: use [github.com/gofiber/utils/v2/strings.ToLower] instead.
14+
//
15+
//go:fix inline
1416
func ToLower(b string) string {
1517
return casestrings.ToLower(b)
1618
}
1719

1820
// ToUpper converts ascii string to upper-case.
1921
//
20-
// Deprecated: use package "github.com/gofiber/utils/v2/strings" and call strings.ToUpper.
22+
// Deprecated: use [github.com/gofiber/utils/v2/strings.ToUpper] instead.
23+
//
24+
//go:fix inline
2125
func ToUpper(b string) string {
2226
return casestrings.ToUpper(b)
2327
}

0 commit comments

Comments
 (0)