1
0
mirror of https://github.com/danog/amp.git synced 2024-11-26 20:15:00 +01:00

Fix syntax error in documentation example (#237)

This commit is contained in:
Šimon Podlipský 2018-09-20 07:17:57 +02:00 committed by Niklas Keller
parent 205d37d849
commit 3fcc4d5de7

View File

@ -38,7 +38,7 @@ That's where promises come into play.
They're simple placeholders that are returned and allow a callback (or several callbacks) to be registered.
```php
doSomething()->onResolve(function ($error, $value)) {
doSomething()->onResolve(function ($error, $value) {
if ($error) {
/* ... */
} else {