Skip to content

Commit

Permalink
Docs correction
Browse files Browse the repository at this point in the history
  • Loading branch information
tuler committed Aug 20, 2024
1 parent 3e8a202 commit 7691ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/docs/pages/inspect-handlers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const app = createApp({ url: "http://127.0.0.1:5004" });
app.addInspectHandler(handler);
```

Reports are the only kind of output that inspect handlers should create.
Reports are the only kind of output that inspect handlers can create.
The state of the Cartesi machine as a whole is not modified on an inspect request, so you should only use this kind of request handler to return application state (and not modify the state).

Another useful use case of inspects is to simulate the outcome of an input, like doing some kind of validation logic, and returning the expected result.
Expand Down

0 comments on commit 7691ec3

Please sign in to comment.