Skip to content

Commit f31b66e

Browse files
Apply suggestions from code review
Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>
1 parent 244351c commit f31b66e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustdoc/json/conversions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ fn maybe_from_hir_attr(
911911
};
912912

913913
Some(match kind {
914-
AK::Deprecation { .. } => return None, // Handled seperatly into Item::deprecation.
914+
AK::Deprecation { .. } => return None, // Handled separately into Item::deprecation.
915915
AK::DocComment { .. } => unreachable!("doc comments stripped out earlier"),
916916

917917
AK::MustUse { reason, span: _ } => {

src/rustdoc-json-types/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ pub struct Item {
204204

205205
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
206206
#[serde(rename_all = "snake_case")]
207-
/// An attribute, eg `#[repr(C)]`
207+
/// An attribute, e.g. `#[repr(C)]`
208208
///
209209
/// This doesn't include:
210210
/// - `#[doc = "Doc Comment"]` or `/// Doc comment`. These are in [`Item::docs`] instead.

0 commit comments

Comments
 (0)