Closed garypen closed 2 years ago
trim
modifies the string inline.
Try:
fn run(hello) {
print(hello);
hello.trim();
print(hello);
}
run(" hello ");
Turns out the doc-comments for trim
has an incorrect example. It is now fixed.
Thanks very much for the info. I'll close this.
I ran:
in the rhai playground and saw:
which surprised me.
bug?