Skip to content

Commit 0e830b3

Browse files
davidschneider-cpinashif
authored andcommitted
doc: kernel: fix braces in code example
Add missing closing brace to `k_poll()` loop example. Signed-off-by: David Schneider <[email protected]>
1 parent e2cdd92 commit 0e830b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/kernel/services/polling.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ to :c:macro:`K_POLL_STATE_NOT_READY` by the user.
196196
} else if (events[3].state == K_POLL_STATE_PIPE_DATA_AVAILABLE) {
197197
ret = k_pipe_get(events[3].pipe, buf, bytes_to_read, &bytes_read, min_xfer, K_NO_WAIT);
198198
// handle data
199+
}
199200
events[0].state = K_POLL_STATE_NOT_READY;
200201
events[1].state = K_POLL_STATE_NOT_READY;
201202
events[2].state = K_POLL_STATE_NOT_READY;

0 commit comments

Comments
 (0)