I modified the doc of from_elem, from_fn, I think it returns an owned vector
auto merge of #6173 : sammykim/rust/doc-vec, r=yichoi

I think whether vector element is mutable is decided by whether vector reference is mutable.