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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user