From 9d3ce455142340888bf75e1d91a46cbcb8d22e9c Mon Sep 17 00:00:00 2001 From: Paul Sanders Date: Sun, 24 Sep 2023 09:44:14 -0400 Subject: [PATCH] Make sentence more clear (#84) --- src/tutorial/json-editor/main.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tutorial/json-editor/main.md b/src/tutorial/json-editor/main.md index fb9dc0bc3..3a2c89c73 100644 --- a/src/tutorial/json-editor/main.md +++ b/src/tutorial/json-editor/main.md @@ -78,7 +78,7 @@ important that we handle our error in such a way that we can call this last piec {{#include ./ratatui-json-editor-app/src/main.rs:final_print}} ``` -The if statement at the end of boilerplate checks if the `run_app` function errored. If `run_app` +The if statement at the end of boilerplate checks if the `run_app` function errored, or if it returned an `Ok` state. If it returned an `Ok` state, we need to check if we should print the json. If we don't call our print function before we call `execute!(LeaveAlternateScreen)`, our prints will