Skip to content

Commit 4597bb4

Browse files
JohnTitortshepang
authored andcommitted
Update explnation about Body.basic_blocks
Signed-off-by: Yuki Okushi <[email protected]>
1 parent 82e50a6 commit 4597bb4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/identifiers.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ See the [HIR chapter][hir-map] for more detailed information.
6565

6666
- [`BasicBlock`] identifies a *basic block*. It points to an instance of
6767
[`BasicBlockData`], which can be retrieved by indexing into
68-
[`Body::basic_blocks()`] (note that you must call a function; the field is
69-
private).
68+
[`Body.basic_blocks`].
7069

7170
- [`Local`] identifies a local variable in a function. Its associated data is in
7271
[`LocalDecl`], which can be retrieved by indexing into [`Body.local_decls`].
@@ -93,7 +92,7 @@ See the [HIR chapter][hir-map] for more detailed information.
9392

9493
[`BasicBlock`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.BasicBlock.html
9594
[`BasicBlockData`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.BasicBlockData.html
96-
[`Body::basic_blocks()`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.Body.html#method.basic_blocks
95+
[`Body.basic_blocks`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.Body.html#structfield.basic_blocks
9796
[`Local`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.Local.html
9897
[`LocalDecl`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.LocalDecl.html
9998
[`Body.local_decls`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.Body.html#structfield.local_decls

0 commit comments

Comments
 (0)