Skip to content

Commit

Permalink
os: update comments (#19989)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm authored Nov 26, 2023
1 parent 8da8027 commit b088f43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions vlib/os/file.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ pub fn (f &File) read(mut buf []u8) !int {
}

// **************************** Write ops ***************************

// write implements the Writer interface.
// It returns how many bytes were actually written.
pub fn (mut f File) write(buf []u8) !int {
Expand Down Expand Up @@ -559,6 +560,7 @@ pub fn (f &File) read_into_ptr(ptr &u8, max_size int) !int {
}

// **************************** Utility ops ***********************

// flush writes any buffered unwritten data left in the file stream.
pub fn (mut f File) flush() {
if !f.is_opened {
Expand Down
2 changes: 0 additions & 2 deletions vlib/os/os.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ pub fn read_file(path string) !string {
}
}

// ***************************** OS ops ************************
//
// truncate changes the size of the file located in `path` to `len`.
// Note that changing symbolic links on Windows only works as admin.
pub fn truncate(path string, len u64) ! {
Expand Down

0 comments on commit b088f43

Please sign in to comment.