Skip to content

Commit 64417c5

Browse files
Add documentation for paths in rustdoc search
1 parent 7dc684f commit 64417c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/doc/rustdoc/src/how-to-read-rustdoc.md

+5
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ Function signature searches also support arrays and slices. The explicit name
110110
or array of bytes, while square brackets `[u8]` will match either one. Empty
111111
square brackets, `[]`, will match any slice regardless of what it contains.
112112

113+
Paths are supported as well, you can look for `Vec::new` or `Option::Some` or
114+
even `module::module_child::another_child::struct::field`. Whitespace characters
115+
are considered the same as `::`, so if you write `Vec new`, it will be
116+
considered the same as `Vec::new`.
117+
113118
### Shortcuts
114119

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

0 commit comments

Comments
 (0)