Skip to content

Commit 2562a10

Browse files
authored
Fix file paths to section 35.1 & 35.2 example code (#2078)
1 parent 451d43f commit 2562a10

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/rustc-driver/getting-diagnostics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ and run [`TyCtxt.analysis`].
1111
The following was tested with <!-- date-check: september 2024 --> `nightly-2024-09-16`:
1212

1313
```rust
14-
{{#include ../examples/rustc-driver-getting-diagnostics.rs}}
14+
{{#include ../../examples/rustc-driver-getting-diagnostics.rs}}
1515
```
1616

1717
[`rustc_interface`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_interface/index.html

src/rustc-driver/interacting-with-the-ast.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ To get the type of an expression, use the [`global_ctxt`] query to [get] a [`TyC
88
The following was tested with <!-- date-check: may 2024 --> `nightly-2024-05-09`:
99

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

0 commit comments

Comments
 (0)