Rollup merge of #104349 - rustaceanclub:master, r=oli-obk
fix some typos in comments
This commit is contained in:
commit
5763fa74f0
13 changed files with 15 additions and 15 deletions
|
|
@ -674,7 +674,7 @@ impl FromWithTcx<clean::Variant> for Variant {
|
|||
impl FromWithTcx<clean::Discriminant> for Discriminant {
|
||||
fn from_tcx(disr: clean::Discriminant, tcx: TyCtxt<'_>) -> Self {
|
||||
Discriminant {
|
||||
// expr is only none if going throught the inlineing path, which gets
|
||||
// expr is only none if going through the inlineing path, which gets
|
||||
// `rustc_middle` types, not `rustc_hir`, but because JSON never inlines
|
||||
// the expr is always some.
|
||||
expr: disr.expr(tcx).unwrap(),
|
||||
|
|
|
|||
|
|
@ -277,7 +277,7 @@ impl<'tcx> FormatRenderer<'tcx> for JsonRenderer<'tcx> {
|
|||
|
||||
let e = ExternalCrate { crate_num: LOCAL_CRATE };
|
||||
|
||||
// FIXME(adotinthevoid): Remove this, as it's not consistant with not
|
||||
// FIXME(adotinthevoid): Remove this, as it's not consistent with not
|
||||
// inlining foreign items.
|
||||
let foreign_trait_items = self.get_trait_items();
|
||||
let mut index = (*self.index).clone().into_inner();
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ pub struct ItemSummary {
|
|||
/// `["std", "io", "lazy", "Lazy"]` for `std::io::lazy::Lazy`).
|
||||
///
|
||||
/// Note that items can appear in multiple paths, and the one chosen is implementation
|
||||
/// defined. Currenty, this is the full path to where the item was defined. Eg
|
||||
/// defined. Currently, this is the full path to where the item was defined. Eg
|
||||
/// [`String`] is currently `["alloc", "string", "String"]` and [`HashMap`] is
|
||||
/// `["std", "collections", "hash", "map", "HashMap"]`, but this is subject to change.
|
||||
pub path: Vec<String>,
|
||||
|
|
@ -351,7 +351,7 @@ pub enum Variant {
|
|||
/// A variant with unnamed fields.
|
||||
///
|
||||
/// Unlike most of json, `#[doc(hidden)]` fields will be given as `None`
|
||||
/// instead of being ommited, because order matters.
|
||||
/// instead of being omitted, because order matters.
|
||||
///
|
||||
/// ```rust
|
||||
/// enum Demo {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue