Skip to content

Commit

Permalink
Update src/doc/rustdoc/src/lints.md
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
  • Loading branch information
Manishearth and Joshua Nelson committed Sep 15, 2020
1 parent 6f1fa2b commit 792b2ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/rustdoc/src/lints.md
Expand Up @@ -25,11 +25,11 @@ pub fn foo() {}
You'll get a warning saying:

```text
warning: `[Nonexistent]` cannot be resolved, ignoring it.
warning: unresolved link to `Nonexistent`
--> test.rs:1:24
|
1 | /// I want to link to [`Nonexistent`] but it doesn't exist!
| ^^^^^^^^^^^^^ cannot be resolved, ignoring
| ^^^^^^^^^^^^^ no item named `Nonexistent` in `test`
```

It will also warn when there is an ambiguity and suggest how to disambiguate:
Expand Down

0 comments on commit 792b2ea

Please sign in to comment.