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

io: add missing documentation and edit existing ones (#17105)

This commit is contained in:
Nahua
2023-01-25 21:03:20 +01:00
committed by GitHub
parent 84b99ceeb2
commit 21b17fe234
6 changed files with 32 additions and 21 deletions

View File

@ -13,7 +13,7 @@ pub struct TempFileOptions {
pattern string
}
// temp_file returns an uniquely named, open, writable, `os.File` and it's path
// temp_file returns a uniquely named, open, writable, `os.File` and it's path.
pub fn temp_file(tfo TempFileOptions) !(os.File, string) {
mut d := tfo.path
if d == '' {
@ -50,7 +50,7 @@ fn error_for_temporary_folder(fn_name string, d string) !string {
return error('${fn_name} could not create temporary directory "${d}". Please ensure you have write permissions for it.')
}
// temp_dir returns an uniquely named, writable, directory path
// temp_dir returns a uniquely named, writable, directory path.
pub fn temp_dir(tdo TempFileOptions) !string {
mut d := tdo.path
if d == '' {