diff --git a/_examples/barExtender/main.go b/_examples/barExtender/main.go index 5b2f117..21241f0 100644 --- a/_examples/barExtender/main.go +++ b/_examples/barExtender/main.go @@ -19,7 +19,7 @@ for i := 0; i < numBars; i++ { name := fmt.Sprintf("Bar#%d:", i) - efn := func(w io.Writer, width int, s decor.Statistics) { + efn := func(w io.Writer, _ int, s decor.Statistics) { if s.Completed { fmt.Fprintf(w, "Bar id: %d has been completed\n", s.ID) } diff --git a/_examples/decoratorsOnTop/main.go b/_examples/decoratorsOnTop/main.go index 1d592f1..b26bae5 100644 --- a/_examples/decoratorsOnTop/main.go +++ b/_examples/decoratorsOnTop/main.go @@ -38,8 +38,8 @@ } func nlBarFiller(filler mpb.BarFiller) mpb.BarFiller { - return mpb.BarFillerFunc(func(w io.Writer, width int, s decor.Statistics) { - filler.Fill(w, width, s) + return mpb.BarFillerFunc(func(w io.Writer, reqWidth int, s decor.Statistics) { + filler.Fill(w, reqWidth, s) w.Write([]byte("\n")) }) }