diff options
| author | gingerBill <bill@gingerbill.org> | 2021-09-29 13:24:42 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-09-29 13:24:42 +0100 |
| commit | b2164b5da604e62aa24eeb9c77fc72128afe7f89 (patch) | |
| tree | ada5161e3eb3cb792c176b8e33710836e8c1ca1c /core/strings | |
| parent | 057310472e453a4cda7c93daa15115ca99ee9b90 (diff) | |
Make the io/conv.odin utilities be `#optional_ok`
Diffstat (limited to 'core/strings')
| -rw-r--r-- | core/strings/builder.odin | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/strings/builder.odin b/core/strings/builder.odin index 3396971e3..b4b1e43b2 100644 --- a/core/strings/builder.odin +++ b/core/strings/builder.odin @@ -80,8 +80,7 @@ to_stream :: proc(b: ^Builder) -> io.Stream { return io.Stream{stream_vtable=_builder_stream_vtable, stream_data=b} } to_writer :: proc(b: ^Builder) -> io.Writer { - w, _ := io.to_writer(to_stream(b)) - return w + return io.to_writer(to_stream(b)) } |