From 6ebf2ee427d7f5ef94cfcae20d739dbffcaa52a0 Mon Sep 17 00:00:00 2001 From: Rasmus Wriedt Larsen Date: Tue, 31 Oct 2023 11:12:56 +0100 Subject: [PATCH] docs: fix typo (ans => and) --- docs/source/tutorials/parse-parameters.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/tutorials/parse-parameters.md b/docs/source/tutorials/parse-parameters.md index 513bfd2dd..f6278ae4e 100644 --- a/docs/source/tutorials/parse-parameters.md +++ b/docs/source/tutorials/parse-parameters.md @@ -60,7 +60,7 @@ engine.registerTag('random', { Calling this tag in scope `{ bar: "bar", obj: { coo: "coo" } }` yields exactly the same result as the first example. See this JSFiddle: -{% note info Async ans Promises %} +{% note info Async and Promises %} Async calls in LiquidJS are implemented by generators directly, for we can call generators in synchronous manner so this tag implementation is also valid for `renderSync()`, `parseAndRenderSync()`, `renderFileSync()`. If you need to await a promise in tag implementation, simply replace `await somePromise` with `yield somePromise` and keep `* render()` instead of `async render()` will do the trick. See Sync and Async for more details. {% endnote %}