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

os: small cleanup of function description (#14112)

This commit is contained in:
Hunam 2022-04-20 19:58:41 +02:00 committed by GitHub
parent 1546645f63
commit 0374f021c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -368,7 +368,7 @@ pub fn expand_tilde_to_home(path string) string {
} }
// write_file writes `text` data to the file in `path`. // write_file writes `text` data to the file in `path`.
// If `path` exists already, the contents of `path` will be overwritten with the contents of `text`. // If `path` exists, the contents of `path` will be overwritten with the contents of `text`.
pub fn write_file(path string, text string) ? { pub fn write_file(path string, text string) ? {
mut f := create(path) ? mut f := create(path) ?
unsafe { f.write_full_buffer(text.str, usize(text.len)) ? } unsafe { f.write_full_buffer(text.str, usize(text.len)) ? }