Skip to content

Commit d4e4ad1

Browse files
authored
Merge pull request #2389 from fuzzypixelz/typos
Fix typos in "Libraries and Metadata"
2 parents 6f524a2 + ef032e8 commit d4e4ad1

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

src/backend/libs-and-metadata.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ format is specific to `rustc`, and may change over time. This file contains:
2828
[`-C embed-bitcode=no`][embed-bitcode] CLI option to improve compile times
2929
and reduce disk space if LTO is not needed.
3030
* `rustc` [metadata], in a file named `lib.rmeta`.
31-
* A symbol table, which is generally a list of symbols with offsets to the
32-
object file that contain that symbol. This is pretty standard for archive
31+
* A symbol table, which is essentially a list of symbols with offsets to the
32+
object files that contain that symbol. This is pretty standard for archive
3333
files.
3434

3535
[archive file]: https://en.wikipedia.org/wiki/Ar_(Unix)
@@ -46,12 +46,11 @@ A `dylib` is a platform-specific shared library. It includes the `rustc`
4646

4747
### rmeta
4848

49-
An `rmeta` file is custom binary format that contains the [metadata] for the
50-
crate. This file can be used for fast "checks" of a project by skipping all
51-
code generation (as is done with `cargo check`), collecting enough information
52-
for documentation (as is done with `cargo doc`), or for
53-
[pipelining](#pipelining). This file is created if the
54-
[`--emit=metadata`][emit] CLI option is used.
49+
An `rmeta` file is a custom binary format that contains the [metadata] for the
50+
crate. This file can be used for fast "checks" of a project by skipping all code
51+
generation (as is done with `cargo check`), collecting enough information for
52+
documentation (as is done with `cargo doc`), or for [pipelining](#pipelining).
53+
This file is created if the [`--emit=metadata`][emit] CLI option is used.
5554

5655
`rmeta` files do not support linking, since they do not contain compiled
5756
object files.
@@ -60,8 +59,8 @@ object files.
6059

6160
## Metadata
6261

63-
The metadata contains a wide swath of different elements. This guide will not
64-
go into detail of every field it contains. You are encouraged to browse the
62+
The metadata contains a wide swath of different elements. This guide will not go
63+
into detail about every field it contains. You are encouraged to browse the
6564
[`CrateRoot`] definition to get a sense of the different elements it contains.
6665
Everything about metadata encoding and decoding is in the [`rustc_metadata`]
6766
package.
@@ -122,9 +121,9 @@ much more.
122121

123122
By default, all Rust symbols are mangled and incorporate the stable crate id.
124123
This allows multiple versions of the same crate to be included together. Cargo
125-
automatically generates `-C metadata` hashes based on a variety of factors,
126-
like the package version, source, and the target kind (a lib and test can have
127-
the same crate name, so they need to be disambiguated).
124+
automatically generates `-C metadata` hashes based on a variety of factors, like
125+
the package version, source, and target kind (a lib and test can have the same
126+
crate name, so they need to be disambiguated).
128127

129128
[`StableCrateId`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_span/def_id/struct.StableCrateId.html
130129
[`StableCrateId::new`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_span/def_id/struct.StableCrateId.html#method.new
@@ -154,7 +153,7 @@ will also look at the [sysroot] to find dependencies.
154153

155154
As crates are loaded, they are kept in the [`CStore`] with the crate metadata
156155
wrapped in the [`CrateMetadata`] struct. After resolution and expansion, the
157-
`CStore` will make its way into the [`GlobalCtxt`] for the rest of
156+
`CStore` will make its way into the [`GlobalCtxt`] for the rest of the
158157
compilation.
159158

160159
[name resolution]: ../name-resolution.md

0 commit comments

Comments
 (0)