Skip to content

Commit 8f83c7b

Browse files
committed
docs: note to prefer dedicated methods
1 parent e47727f commit 8f83c7b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/format/writer.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,13 @@ func (w *Writer) Info(icon string, message string) {
7373
}
7474

7575
// Printf formats according to a format specifier and writes to the underlying writer.
76+
// Prefer the dedicated methods if applicable.
7677
func (w *Writer) Printf(format string, a ...any) {
7778
fmt.Fprintf(w.writer(), format, a...)
7879
}
7980

8081
// Println prints a formatted message to the underlying writer.
82+
// Prefer the dedicated methods if applicable.
8183
func (w *Writer) Println(a ...any) {
8284
fmt.Fprintln(w.writer(), a...)
8385
}

0 commit comments

Comments
 (0)