os: small cleanup of function description (#14112)

Hunam 2022-04-20 19:58:41 +02:00 committed by Jef Roosens
parent 43e810024c
commit 1e42538e22
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 1 additions and 1 deletions

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`.
// 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) ? {
mut f := create(path) ?
unsafe { f.write_full_buffer(text.str, usize(text.len)) ? }