Skip to content

Commit ac6122d

Browse files
committed
std/encoding/json: fix compile issues
1 parent 3319b5a commit ac6122d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/encoding/json/encode.jule

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ impl jsonEncoder {
359359
// Non-nil slices and arrays should have same outputs.
360360
fn encodeSlice[T, Flag](mut self, &t: T)! {
361361
if t == nil {
362-
self.writeStr("[]")
362+
self.buf.writeStr("[]")
363363
ret
364364
}
365365
const match comptime::TypeOf(T).Value().Kind() {

0 commit comments

Comments
 (0)