Skip to content

Commit

Permalink
Fix file paths to section 35.1 & 35.2 example code (#2078)
Browse files Browse the repository at this point in the history
  • Loading branch information
CBSpeir authored Sep 25, 2024
1 parent 451d43f commit 2562a10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rustc-driver/getting-diagnostics.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ and run [`TyCtxt.analysis`].
The following was tested with <!-- date-check: september 2024 --> `nightly-2024-09-16`:

```rust
{{#include ../examples/rustc-driver-getting-diagnostics.rs}}
{{#include ../../examples/rustc-driver-getting-diagnostics.rs}}
```

[`rustc_interface`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_interface/index.html
Expand Down
2 changes: 1 addition & 1 deletion src/rustc-driver/interacting-with-the-ast.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ To get the type of an expression, use the [`global_ctxt`] query to [get] a [`TyC
The following was tested with <!-- date-check: may 2024 --> `nightly-2024-05-09`:

```rust
{{#include ../examples/rustc-driver-interacting-with-the-ast.rs}}
{{#include ../../examples/rustc-driver-interacting-with-the-ast.rs}}
```
[get]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/context/struct.GlobalCtxt.html#method.enter
[`global_ctxt`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_interface/queries/struct.Queries.html#method.global_ctxt
Expand Down

0 comments on commit 2562a10

Please sign in to comment.