documentation: tweaked middleware example

Impact: low