Skip to content

Commit 11ecc8f

Browse files
committed
doc: smf: Fix return type in event sample
Fix mismatch between `*_run` function return type and implementation. The run functions return `enum smf_state_result`, but the event-driven sample defined them as void while still returning a value. Signed-off-by: Tomáš Juřena <[email protected]>
1 parent e438b57 commit 11ecc8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/services/smf/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ Code::
471471
printk("STATE0\n");
472472
}
473473

474-
static void s0_run(void *o)
474+
static enum smf_state_result s0_run(void *o)
475475
{
476476
struct s_object *s = (struct s_object *)o;
477477

@@ -488,7 +488,7 @@ Code::
488488
printk("STATE1\n");
489489
}
490490

491-
static void s1_run(void *o)
491+
static enum smf_state_result s1_run(void *o)
492492
{
493493
struct s_object *s = (struct s_object *)o;
494494

0 commit comments

Comments
 (0)