Fix method example in docs [ci skip]