File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ fn bprintf(fmt: str, args: ...any): []byte {
155155}
156156
157157// Tries to call reserved Str method for type.
158- fn tryToCallStr[T](mut &sb: strings::Builder, t: T): (ok: bool) {
158+ fn tryToCallStr[T](mut &sb: * strings::Builder, t: T): (ok: bool) {
159159 const tt = comptime::TypeOf(T)
160160 const for _, method in tt.Decl().Methods() {
161161 const match method.Name() {
@@ -177,7 +177,7 @@ fn tryToCallStr[T](mut &sb: strings::Builder, t: T): (ok: bool) {
177177 ret false
178178}
179179
180- fn bprintgw[T](mut &sb: strings::Builder, t: T) {
180+ fn bprintgw[T](mut &sb: * strings::Builder, t: T) {
181181 const tt = comptime::TypeOf(T)
182182 const match {
183183 | tt.Bind():
@@ -286,6 +286,6 @@ fn bprintgw[T](mut &sb: strings::Builder, t: T) {
286286
287287fn bprintg[T](t: T): []byte {
288288 mut sb := strings::Builder{}
289- bprintgw(sb, t)
289+ bprintgw(& sb, t)
290290 ret unsafe { sb.Buf() }
291291}
You can’t perform that action at this time.
0 commit comments