Range/slice operator (..) should have an index entry
j-q-arnold opened this issue · comments
j-q-arnold commented
-
I have searched open and closed issues and pull requests for duplicates, using these search terms:
- range
- slice
-
I have checked the latest
main
branch to see if this has already been fixed, in this file:- no
URL to the section(s) of the book with this problem:
Description of the problem:
- The index does not include the
..
syntax in the "Symbols" section. - The index entry for "range" gives pages 406-407. Suggest also including pages 79-80
- The index entry for "slice type" has several sub-entries. Suggest including
..
explicitly.
Suggested fix:
- Add index entries for
..
- As a more general matter, suggest a general scan for additional items that should have index entries under Symbols:
..=
, perhaps others
cyrilberrypi commented
Hi Team, you emphasize on .. syntax. Is there a snippet of your code for visibility. Thanks.
Chris Krycho commented
@cyrilberrypi not sure what you're asking! You might want to read Looping Through a Collection with for
in this book, or a similar example in Rust by Example. If you have further questions, this is probably not the right spot for it; thanks!