Fix return values in documentation [ci skip]