navid/haze / 48ef02229ff0b40a4849e26fc1a9f371991f791d48bb426ffeb35dad068eb87d / samples/baseline_2.9/str_immutable_error.hz
str_immutable_error.hz
← samples/baseline_2.9 · 125 bytes · raw · download
// Strings are immutable; mutate their bytes instead.
fn main() {
var text = "hello"
text[0] = 72
print(text)
}