vlib: update doc comments (#19231)

This commit is contained in:
Turiiya 2023-08-30 07:50:00 +02:00 committed by GitHub
parent 78c34326f1
commit f755118e7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 22 additions and 20 deletions

View file

@ -51,7 +51,7 @@ fn fix_windows_path(path string) string {
return p
}
// open_file can be used to open or create a file with custom flags and permissions and returns a `File` object.
// open_file tries to open or create a file with custom flags and permissions.
pub fn open_file(path string, mode string, options ...int) !File {
mut flags := 0
mut seek_to_end := false
@ -129,7 +129,7 @@ pub fn open_file(path string, mode string, options ...int) !File {
}
}
// open tries to open a file for reading and returns back a read-only `File` object.
// open tries to open a file from a given path for reading.
pub fn open(path string) !File {
/*
$if linux {