Fix doc for `vec`

Changed to match behavior described in #2214