docs: update broken snippet, add doc reference