rust icon indicating copy to clipboard operation
rust copied to clipboard

vec::from_fn documentation says it returns an immutable vector

Open sammykim opened this issue 13 years ago • 2 comments

Same for vec::from_elem. But I think they do not return an immutable vector.

sammykim avatar Feb 28 '13 11:02 sammykim

Yes, the return type is an immutable vector. Why do you think it's not?

graydon avatar May 01 '13 19:05 graydon

It should probably just say it returns an owned vector.

thestinger avatar May 01 '13 19:05 thestinger