diff --git a/docs/Tour.md b/docs/Tour.md index 9f594fd..60a7e5c 100644 --- a/docs/Tour.md +++ b/docs/Tour.md @@ -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): ```lua -local myFunction() +local function myFunction() return Promise.new(function(resolve, reject, onCancel) somethingThatYields() resolve("Hello world!")