Skip to content

Commit d5b6d35

Browse files
aDotInTheVoidfmease
andcommitted
Apply suggestions from code review
Co-authored-by: León Orell Valerian Liehr <[email protected]>
1 parent 48d0f67 commit d5b6d35

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/librustdoc/json/ids.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
//! Id handling for rustdoc-json.
22
//!
33
//! Manages the creation of [`rustdoc_json_types::Id`] and the
4-
//! fact that these don't corespond exactly to [`DefId`], because
5-
//! [`rustdoc_json_types::Item`] doesn't corespond exactly to what
6-
//! other phasises thing of as an "item".
4+
//! fact that these don't correspond exactly to [`DefId`], because
5+
//! [`rustdoc_json_types::Item`] doesn't correspond exactly to what
6+
//! other phases think of as an "item".
77
88
use rustc_data_structures::fx::FxHashMap;
99
use rustc_hir::def::DefKind;
@@ -19,17 +19,17 @@ pub(super) type IdInterner = FxHashMap<FullItemId, types::Id>;
1919
#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq)]
2020
/// An uninterned id.
2121
///
22-
/// One of these coresponds to every:
22+
/// One of these corresponds to every:
2323
/// 1. [`rustdoc_json_types::Item`].
24-
/// 2. [`rustdoc_json_types::Id`] transitivly (as each `Item` has an `Id`).
24+
/// 2. [`rustdoc_json_types::Id`] transitively (as each `Item` has an `Id`).
2525
///
2626
/// It's *broadly* equivalent to a [`DefId`], but needs slightly more information
2727
/// to fully disambiguate items, because sometimes we choose to split a single HIR
28-
/// item into multiple JSON items, or have items with no coresponding HIR item.
28+
/// item into multiple JSON items, or have items with no corresponding HIR item.
2929
pub(super) struct FullItemId {
3030
/// The "main" id of the item.
3131
///
32-
/// In most cases this unequely identifies the item, other fields are just
32+
/// In most cases this uniquely identifies the item, the other fields are just
3333
/// used for edge-cases.
3434
def_id: DefId,
3535

@@ -39,7 +39,7 @@ pub(super) struct FullItemId {
3939
/// 2. Blanket impls synthesized by rustdoc.
4040
/// 3. Splitting of reexports of multiple items.
4141
///
42-
/// Eg:
42+
/// E.g:
4343
///
4444
/// ```rust
4545
/// mod module {
@@ -54,10 +54,10 @@ pub(super) struct FullItemId {
5454
/// we need to disambiguate.
5555
extra_id: Option<DefId>,
5656

57-
/// Needed for `rustc_doc_primitive` modules.
57+
/// Needed for `#[rustc_doc_primitive]` modules.
5858
///
5959
/// For these, 1 [`DefId`] is used for both the primitive and the fake-module
60-
/// that holds it's docs.
60+
/// that holds its docs.
6161
///
6262
/// N.B. This only matters when documenting the standard library with
6363
/// `--document-private-items`. Maybe we should delete that module, and

0 commit comments

Comments
 (0)