1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

io: make new_multi_writer use varargs (#10062)

This commit is contained in:
Leigh McCulloch
2021-05-08 23:21:08 -07:00
committed by GitHub
parent 6a54f3a84d
commit 26652c8a23
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ module io
// full length an error is returned and writing to other writers stops, and if
// any writer returns an error the error is returned immediately and writing to
// other writers stops.
pub fn new_multi_writer(writers []Writer) Writer {
pub fn new_multi_writer(writers ...Writer) Writer {
return &MultiWriter{
writers: writers
}