log: replace the outdated link (#29412)

This commit is contained in:
carehabit 2024-04-02 15:05:53 +08:00 committed by GitHub
parent 8c5576b1ac
commit fde90443a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -340,7 +340,7 @@ func writeTimeTermFormat(buf *bytes.Buffer, t time.Time) {
// writePosIntWidth writes non-negative integer i to the buffer, padded on the left // writePosIntWidth writes non-negative integer i to the buffer, padded on the left
// by zeroes to the given width. Use a width of 0 to omit padding. // by zeroes to the given width. Use a width of 0 to omit padding.
// Adapted from golang.org/x/exp/slog/internal/buffer/buffer.go // Adapted from pkg.go.dev/log/slog/internal/buffer
func writePosIntWidth(b *bytes.Buffer, i, width int) { func writePosIntWidth(b *bytes.Buffer, i, width int) {
// Cheap integer to fixed-width decimal ASCII. // Cheap integer to fixed-width decimal ASCII.
// Copied from log/log.go. // Copied from log/log.go.