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:
parent
205d37d849
commit
3fcc4d5de7
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user