From d0a13eaefd00e1f123fa660af0f1b5f37d255118 Mon Sep 17 00:00:00 2001 From: Ivanshamir Date: Wed, 24 Nov 2021 01:10:04 +0600 Subject: [PATCH] fix typo of promises.md --- docs/async/promises.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/async/promises.md b/docs/async/promises.md index 5dc0518..348e55f 100644 --- a/docs/async/promises.md +++ b/docs/async/promises.md @@ -51,7 +51,7 @@ This works across all supported PHP versions. ## Usage If you've used promises before, you'll find that using promise-based APIs in X -is pretty straightfowrard. The gist is that when you're working with an async +is pretty straightforward. The gist is that when you're working with an async API that returns a promise, you have to use a chained `then()` call on it in order to "await" its fulfillment value. This is best shown in a simple example: