Skip to content

Commit d0b31f4

Browse files
tshepangjyn514
authored andcommitted
minor fixes
1 parent a9e9539 commit d0b31f4

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/doc/rustc-dev-guide/src/building/how-to-build-and-run.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ involve proc macros or build scripts, you must be sure to explicitly build targe
236236
host platform (in this case, `x86_64-unknown-linux-gnu`).
237237

238238
If you want to always build for other targets without needing to pass flags to `x.py build`,
239-
then you can configure this in the `[build]` section of your `config.toml` like so:
239+
you can configure this in the `[build]` section of your `config.toml` like so:
240240

241241
```toml
242242
[build]

src/doc/rustc-dev-guide/src/debugging-support-in-rustc.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,16 @@ visualization to serve up in the debugger.
125125
Both WinDbg and CDB support defining and viewing custom visualizations for any given type
126126
within the debugger using the Natvis framework. The Rust compiler defines a set of Natvis
127127
files that define custom visualizations for a subset of types in the standard libraries such
128-
as, `std, core and alloc`. These Natvis files are embedded into `PDBs` generated by the
128+
as, `std`, `core`, and `alloc`. These Natvis files are embedded into `PDBs` generated by the
129129
`*-pc-windows-msvc` target triples to automatically enable these custom visualizations when
130130
debugging. This default can be overridden by setting the `strip` rustc flag to either `debuginfo`
131131
or `symbols`.
132132

133133
Rust has support for embedding Natvis files for crates outside of the standard libraries by
134-
using the `#[debugger_visualizer]` attribute. For more details on how to embed debugger visualizers
135-
please refer to the `#[debugger_visualizer]` attribute in [the unstable book](https://doc.rust-lang.org/unstable-book/language-features/debugger-visualizer.html).
134+
using the `#[debugger_visualizer]` attribute.
135+
For more details on how to embed debugger visualizers,
136+
please refer to the `#[debugger_visualizer]` attribute in
137+
[the unstable book](https://doc.rust-lang.org/unstable-book/language-features/debugger-visualizer.html).
136138

137139
## DWARF and `rustc`
138140

@@ -349,4 +351,4 @@ but may have to add some mode to let the compiler understand some extensions.
349351
[PDB]: https://llvm.org/docs/PDB/index.html
350352
[symbol records]: https://llvm.org/docs/PDB/CodeViewSymbols.html
351353
[type records]: https://llvm.org/docs/PDB/CodeViewTypes.html
352-
[Windows Debugging Tools]: https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/
354+
[Windows Debugging Tools]: https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/

0 commit comments

Comments
 (0)