os: fix warning write_str -> write_string (#9368)

pull/9371/head
JalonSolov 2021-03-18 22:36:27 -04:00 committed by GitHub
parent bb79df932b
commit 9ea88c090b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()
}