Fix a buggy example in the documentation
Sanity check arity of new middleware