Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os: update comments #19989

Merged
merged 1 commit into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 @@ -146,8 +146,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