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

os: fix v -cflags "-Werror" test vlib/os/

This commit is contained in:
Delyan Angelov
2021-03-18 19:45:04 +02:00
parent 7222ee476b
commit b7a5fa7fbe
3 changed files with 23 additions and 14 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(text.bytes()) ?
f.write_str(text) ?
f.close()
}