Don't shadow builtins

This commit is contained in:
Michael Eischer
2023-05-18 18:11:26 +02:00
parent 7a01bd3b67
commit 2fa8b96843
3 changed files with 11 additions and 11 deletions

View File

@@ -177,10 +177,10 @@ func (t *Table) Write(w io.Writer) error {
// write all the lines
for i, line := range lines {
print := func(w io.Writer, s string) error {
printer := func(w io.Writer, s string) error {
return t.PrintData(w, i, s)
}
err := printLine(w, print, t.CellSeparator, line, columnWidths)
err := printLine(w, printer, t.CellSeparator, line, columnWidths)
if err != nil {
return err
}