Skip to content

Commit b30915a

Browse files
authored
Merge pull request #1735 from javascript-tutorial/paroche-patch-13
Update article.md
2 parents d10b50a + 4b124fb commit b30915a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/11-async/08-async-await/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ But we can wrap it into an anonymous async function, like this:
143143
144144
````
145145
````smart header="`await` accepts \"thenables\""
146-
Like `promise.then`, `await` allows to use thenable objects (those with a callable `then` method). The idea is that a third-party object may not be a promise, but promise-compatible: if it supports `.then`, that's enough to use with `await`.
146+
Like `promise.then`, `await` allows us to use thenable objects (those with a callable `then` method). The idea is that a third-party object may not be a promise, but promise-compatible: if it supports `.then`, that's enough to use it with `await`.
147147

148148
Here's a demo `Thenable` class; the `await` below accepts its instances:
149149

0 commit comments

Comments
 (0)