Skip to content

Commit 80fa528

Browse files
committed
Documentation fix
Remove word `function` from middleware description
1 parent 4bd4542 commit 80fa528

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ $server = new Server(array(
860860

861861
Similarly, you can use the result of the `$next` middleware request handler
862862
function to modify the outgoing response.
863-
Note that as per the above documentation, the `$next` function may return a
863+
Note that as per the above documentation, the `$next` middleware request handler may return a
864864
`ResponseInterface` directly or one wrapped in a promise for deferred
865865
resolution.
866866
In order to simplify handling both paths, you can simply wrap this in a
@@ -880,7 +880,7 @@ $server = new Server(array(
880880
));
881881
```
882882

883-
Note that the `$next` middleware request handler function may also throw an
883+
Note that the `$next` middleware request handler may also throw an
884884
`Exception` (or return a rejected promise) as described above.
885885
The previous example does not catch any exceptions and would thus signal an
886886
error condition to the `Server`.

0 commit comments

Comments
 (0)