1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
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

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