[rustdoc]A wrong in documents about slice #45678
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
https://doc.rust-lang.org/std/primitive.slice.html
I think that in
let x = &mut [1, 2, 3];
,x
is not slice. It is just a reference for primitive type (arrary)for example:
that the second on is not a right statements.
against the definition of
let str_slice: &[&str] = &["one", "two", "three"];
x = &mut[1,2,3][..]
is slice type.And I think it's better to add a note.
and
these y are same.
The text was updated successfully, but these errors were encountered: