From 2183e7dd3996081172cd1f3612696d4c0402a2a7 Mon Sep 17 00:00:00 2001 From: Paul Sanders Date: Sun, 24 Sep 2023 05:29:01 -0400 Subject: [PATCH] Make sentence more clear This sentence read weird, I think the update I made is what it is trying to say. --- 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