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:
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…
x
Reference in New Issue
Block a user