mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
vlib: update doc comments (#19231)
This commit is contained in:
parent
78c34326f1
commit
f755118e7c
13 changed files with 22 additions and 20 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue