os: fix warning write_str -> write_string (#9368)
parent
bb79df932b
commit
9ea88c090b
|
@ -333,7 +333,7 @@ pub fn home_dir() string {
|
|||
// write_file writes `text` data to a file in `path`.
|
||||
pub fn write_file(path string, text string) ? {
|
||||
mut f := create(path) ?
|
||||
f.write_str(text) ?
|
||||
f.write_string(text) ?
|
||||
f.close()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue