From 1dec889135622181ad038d09544d903b407c0817 Mon Sep 17 00:00:00 2001 From: Artem Zakirullin Date: Sat, 4 May 2024 09:01:22 +0400 Subject: [PATCH] fix stuff --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 23e88a3..a8c6277 100644 --- a/README.md +++ b/README.md @@ -93,8 +93,8 @@ if isValid && isAllowed && isSecure { ## Nested ifs ```go if isValid { // 🧠+, okay nested code applies to valid input only - if isSecure { // 🧠++, we do stuff1 for valid and secure input only - stuff1 // 🧠+++ + if isSecure { // 🧠++, we do stuff for valid and secure input only + stuff // 🧠+++ } } ``` @@ -109,7 +109,7 @@ if !isSecure // 🧠, we don't really care about earlier returns, if we are here then all good -stuff1 // 🧠+ +stuff // 🧠+ ``` We can focus on the happy path only, thus freeing our working memory from all sorts of preconditions.