Skip to content

Commit e6d5348

Browse files
authored
Fix out of date example in readme
*Chaining Synchronous Actions that have no result* section refered to old functionality that doesn't work in v2+ of the library.
1 parent baa92ba commit e6d5348

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ var promise = ...
400400
promise
401401
.Then(result => SomeAsyncOperation(result)) // Chain an async operation.
402402
.Then(result => Console.WriteLine(result)) // Chain a sync operation that yields no result.
403-
.Done(result => ...); // Result from previous ascync operation skips over the *Do* and is passed through.
403+
.Done(() => ...); // No result is passed because the previous operation returned nothing.
404404
```
405405

406406
## Promises that have no Results (a non-value promise)

0 commit comments

Comments
 (0)