diff --git a/std/internal/fmt/format.jule b/std/internal/fmt/format.jule index 7faeda448..df5b4286b 100644 --- a/std/internal/fmt/format.jule +++ b/std/internal/fmt/format.jule @@ -113,7 +113,7 @@ fn applyFmt(mut &fmt: []byte, mut &buf: StrBuilder, mut &j: int, args: ...any) { // For this function, returned []byte is might be string literal actually. // Be careful about mutating it. fn Format(fmt: str, args: ...any): []byte { - mut fmtBytes := unsafe::BytesFromStr(fmt) + mut fmtBytes := unsafe::StrBytes(fmt) if len(args) == 0 { ret fmtBytes }