From 0e32706e6fe671b88cc00c0e55719f2c976dcda5 Mon Sep 17 00:00:00 2001 From: NODA Ryohei <58542328+HyperToy@users.noreply.github.com> Date: Mon, 10 Mar 2025 12:14:48 +0900 Subject: [PATCH] docs: fix typo in example code --- README.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 5777600a..0a36c081 100644 --- a/README.md +++ b/README.md @@ -581,14 +581,14 @@ const resAsync = parseUserInput(userInput) .asyncAndThen(insertUser) // Note no LogError shows up in the Result type -resAsync.then((res: Result) => {e +resAsync.then((res: Result) => { if(res.isErr()){ console.log("Oops, at least one step failed", res.error) } else{ console.log("User input has been parsed and inserted successfully.") } -})) +}) ``` [⬆️ Back to top](#toc) @@ -628,14 +628,14 @@ const resAsync = parseUserInput(userInput) .asyncAndThen(insertUser) // Note no LogError shows up in the Result type -resAsync.then((res: Result) => {e +resAsync.then((res: Result) => { if(res.isErr()){ console.log("Oops, at least one step failed", res.error) } else{ console.log("User input has been parsed and inserted successfully.") } -})) +}) ``` [⬆️ Back to top](#toc) @@ -675,14 +675,14 @@ const resAsync = parseUserInput(userInput) .andThrough(validateUser) .asyncAndThen(insertUser) -resAsync.then((res: Result) => {e +resAsync.then((res: Result) => { if(res.isErr()){ console.log("Oops, at least one step failed", res.error) } else{ console.log("User input has been parsed, validated, inserted successfully.") } -})) +}) ``` [⬆️ Back to top](#toc) @@ -712,14 +712,14 @@ const resAsync = parseUserInput(userInput) .asyncAndThrough(insertUser) .andThen(sendNotification) -resAsync.then((res: Result) => {e +resAsync.then((res: Result) => { if(res.isErr()){ console.log("Oops, at least one step failed", res.error) } else{ console.log("User has been parsed, inserted and notified successfully.") } -})) +}) ``` [⬆️ Back to top](#toc) @@ -1314,14 +1314,14 @@ const resAsync = insertUser(user) .andThen(sendNotification) // Note there is no LogError in the types below -resAsync.then((res: Result) => {e +resAsync.then((res: Result) => { if(res.isErr()){ console.log("Oops, at least one step failed", res.error) } else{ console.log("User has been inserted and notified successfully.") } -})) +}) ``` [⬆️ Back to top](#toc) @@ -1361,14 +1361,14 @@ const resAsync = insertUser(user) .andThen(sendNotification) // Note there is no LogError in the types below -resAsync.then((res: Result) => {e +resAsync.then((res: Result) => { if(res.isErr()){ console.log("Oops, at least one step failed", res.error) } else{ console.log("User has been inserted and notified successfully.") } -})) +}) ``` [⬆️ Back to top](#toc) @@ -1409,14 +1409,14 @@ const resAsync = buildUser(userRaw) .andThrough(insertUser) .andThen(sendNotification) -resAsync.then((res: Result) => {e +resAsync.then((res: Result) => { if(res.isErr()){ console.log("Oops, at least one step failed", res.error) } else{ console.log("User data has been built, inserted and notified successfully.") } -})) +}) ``` [⬆️ Back to top](#toc)