doc: modify the document to make it consistent with the code (#1821)