Add a note on return type in documentation of middle