picoev: fix documentation (#24811)

This commit is contained in:
Laurent Cheylus 2025-06-29 11:59:14 +02:00 committed by GitHub
parent b909e2eb37
commit 6cbffd53ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 50 additions and 44 deletions

View file

@ -15,14 +15,14 @@ mut:
type LoopType = SelectLoop
// create_select_loop creates a new `SelectLoop` struct with the given `id`
// create_select_loop creates a new `SelectLoop` struct with the given `id`.
pub fn create_select_loop(id int) !&SelectLoop {
return &SelectLoop{
id: id
}
}
// updates the events associated with a file descriptor in the event loop
// updates the events associated with a file descriptor in the event loop.
@[direct_array_access]
fn (mut pv Picoev) update_events(fd int, events int) int {
// check if fd is in range
@ -32,7 +32,7 @@ fn (mut pv Picoev) update_events(fd int, events int) int {
return 0
}
// performs a single iteration of the select-based event loop
// performs a single iteration of the select-based event loop.
@[direct_array_access]
fn (mut pv Picoev) poll_once(max_wait_in_sec int) int {
// Initializes sets for read, write, and error events