Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cee1658

Browse files
committedJan 19, 2018
Add more disambiguators to match PR
1 parent ee53b90 commit cee1658

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎text/1946-intra-rustdoc-links.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ Our proposal is this:
307307
- It is possible that disambiguators for one kind of type-namespace object
308308
will work for the other (i.e. you can use `struct@` to refer to an enum),
309309
but do not rely on this.
310+
- Modules exist in both the type and value namespace and can be disambiguated
311+
with a `mod@` or `module@`, e.g. `[module@foo]`
310312
- In links to macros,
311313
the link label can end with a `!`,
312314
e.g., `Look at the [FOO!] macro`. You can alternatively use a `macro@` prefix,
@@ -315,7 +317,7 @@ Our proposal is this:
315317
- Links to any kind of value (function, const, static) can be prefixed with `value@`,
316318
e.g., `See [value@foo]`.
317319
- Links to functions can be written with a `()` suffix,
318-
e.g., `Also see the [foo()] function`. You can also use `function@`.
320+
e.g., `Also see the [foo()] function`. You can also use `function@` or `fn@`.
319321
- Links to constants are prefixed with `const@`,
320322
e.g., `As defined in [const@FOO].`
321323
- Links to statics are prefixed with `static@`,

0 commit comments

Comments
 (0)
Please sign in to comment.