aboutsummaryrefslogtreecommitdiff
path: root/core/strings
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-09-29 13:24:42 +0100
committergingerBill <bill@gingerbill.org>2021-09-29 13:24:42 +0100
commitb2164b5da604e62aa24eeb9c77fc72128afe7f89 (patch)
treeada5161e3eb3cb792c176b8e33710836e8c1ca1c /core/strings
parent057310472e453a4cda7c93daa15115ca99ee9b90 (diff)
Make the io/conv.odin utilities be `#optional_ok`
Diffstat (limited to 'core/strings')
-rw-r--r--core/strings/builder.odin3
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))
}