Skip to content

Commit

Permalink
rustdoc: update book with [] syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
notriddle committed Jun 10, 2023
1 parent 2e56927 commit 7a1154e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/doc/rustdoc/src/how-to-read-rustdoc.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ will match these queries:

But it *does not* match `Result<Vec, u8>` or `Result<u8<Vec>>`.

Function signature searches also support arrays and slices. The explicit name
`primitive:slice<u8>` and `primitive:array<u8>` can be used to match a slice
or array of bytes, while square brackets `[u8]` will match either one. Empty
square brackets, `[]`, will match any slice regardless of what it contains.

### Shortcuts

Pressing `S` while focused elsewhere on the page will move focus to the
Expand Down

0 comments on commit 7a1154e

Please sign in to comment.