issue #847: fixed wrong return code value in docs