Fix doc for `vec`

Changed to match behavior described in #2214
Merge pull request #2243 from marcusps/vec-doc-fix

RFC: Fix doc for `vec`