Fix :doc: -> :ref: and a typo.