Skip to content

Commit

Permalink
std:csv: fix utf8::UtfMax replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Jul 25, 2024
1 parent 0d09f8a commit f1f6d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/encoding/csv/writer.jule
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ impl Writer {
}
for (n, mut field) in record {
if n > 0 {
let mut bytes = make([]byte, utf8::UtfMax)
let mut bytes = make([]byte, utf8::UTFMax)
let j = utf8::EncodeRune(bytes, self.Comma)
self.w.Write(bytes[:j]) else { error(error) }
}
Expand Down

0 comments on commit f1f6d3a

Please sign in to comment.