Have dumbindent take a dst slice argument

This commit is contained in:
Nigel Tao committed 2020-06-06 21:09:41 +10:00
1 parent dd04d55417
commit 3d7af06727
4 files changed
+91 -18

No files matched your search

+1 -1
View File
@@ -145,7 +145,7 @@ func do(r io.Reader, filename string) error {
return err
}
dst, err := dumbindent.Format(src)
dst, err := dumbindent.FormatBytes(nil, src)
if err != nil {
return err
}