Guide: array subscript notation#16447
Conversation
src/doc/guide.md
Outdated
There was a problem hiding this comment.
uuuuuuugh thank you.
|
Maybe you did want to use Brian in the example. Just wondering :-) |
|
:embarassed: |
src/doc/guide.md
Outdated
There was a problem hiding this comment.
lol, was hoping you wouldn't see :embarassed:
Fixing now.
|
Question, why is this in the "Strings" chapter? |
|
Because |
|
This is now good to go again. |
|
Is it worth noting that subscripts also apply to many collections? e.g. |
|
No, because then we have to fully explain those. |
|
Should this also mention what happens with out-of-bounds indices? And perhaps that indices must always be non-negative (because e.g. in Python, negative indices index from the end)? |
|
I don't think so, because we haven't talked about task failure at all, and it's quite easy to try yourself and see what happens. Additionally, we don't need to pre-emptively say that Rust doesn't have some feature, either. Remember, this guide isn't comprehensive, it's an introduction. |
intenral: Cleanup error variants in MIR code a bit
Can't believe I forgot this!