Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdata committed Nov 21, 2024
1 parent 6ae34db commit 804536e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stringer.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ func (s lockedstringer) JawsGetTag(*Request) any {
}

// Stringer returns a lock protected fmt.Stringer using fmt.Sprintf(formatting, *T).
// If formatting is omitted and *T or T implements fmt.Stringer, that will be used instead of fmt.Sprintf.
// If formatting is omitted fmt.Sprint(*T) is used.
// If formatting is omitted and *T or T implements fmt.Stringer, that will be used instead of fmt.Sprint.
func Stringer[T any](l sync.Locker, p *T, formatting ...string) fmt.Stringer {
var f string
if len(formatting) > 0 {
Expand Down

0 comments on commit 804536e

Please sign in to comment.