Skip to content

Commit dbf9bb5

Browse files
PotatoFiSorixelle
authored andcommitted
Fixed incorrect AppExitReason documentation
Signed-off-by: Joel Crane <[email protected]>
1 parent b745b2c commit dbf9bb5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

source/_guides/user-interfaces/app-exit-reason.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ Introduced in SDK v4.0, the ``AppExitReason`` API allows developers to provide a
2626
reason when terminating their application. The system uses these reasons to
2727
determine where the user should be sent when the current application terminates.
2828

29-
At present there are only 2 ``AppExitReason`` states when exiting an application,
30-
but this may change in future updates.
29+
At present, there are only two ``AppExitReason`` states when exiting an application, but this may change in future updates.
3130

3231
### APP_EXIT_NOT_SPECIFIED
3332

@@ -39,7 +38,7 @@ this state will be used automatically.
3938
static void prv_deinit() {
4039
// Optional, default behavior
4140
// App will exit to the previous location in the system
42-
app_exit_reason_set(APP_EXIT_NOT_SPECIFIED);
41+
exit_reason_set(APP_EXIT_NOT_SPECIFIED);
4342
}
4443
```
4544

@@ -52,6 +51,6 @@ to the default watchface.
5251
```c
5352
static void prv_deinit() {
5453
// App will exit to default watchface
55-
app_exit_reason_set(APP_EXIT_ACTION_PERFORMED_SUCCESSFULLY);
54+
exit_reason_set(APP_EXIT_ACTION_PERFORMED_SUCCESSFULLY);
5655
}
5756
```

0 commit comments

Comments
 (0)