Fix docs typo

Closes #78
This commit is contained in:
eryn L. K 2022-01-03 17:16:14 -05:00 committed by GitHub
parent 0dbd4d8f1b
commit e23601b924
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ Here's quick introduction to Promises. For more complete information, check out
There are a few ways to create a Promise. The most common way is to call [Promise.new](/api/Promise#new): There are a few ways to create a Promise. The most common way is to call [Promise.new](/api/Promise#new):
```lua ```lua
local myFunction() local function myFunction()
return Promise.new(function(resolve, reject, onCancel) return Promise.new(function(resolve, reject, onCancel)
somethingThatYields() somethingThatYields()
resolve("Hello world!") resolve("Hello world!")