Fixed typo in middleware docs.

Function definition should have an ending colon.