Skip to content

Commit

Permalink
fix code using io.multiwriter
Browse files Browse the repository at this point in the history
  • Loading branch information
mcaci authored Jun 21, 2024
1 parent 6be39c8 commit 17bf1e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func forwardContentToTargets(source io.Reader, targets ...io.Writer) error {
// create a writer that includes all targets
dsts := io.MultiWriter(targets)
// read the source and transfer it
_, err := io.Copy(target, source)
_, err := io.Copy(dsts, source)
if err != nil {
return err
}
Expand Down

0 comments on commit 17bf1e4

Please sign in to comment.