Skip to content

Commit 07df2ad

Browse files
committed
Fix some comments
Signed-off-by: zhetaicheleba <[email protected]>
1 parent 235a4c0 commit 07df2ad

File tree

4 files changed

+4
-4
lines changed
  • compiler

4 files changed

+4
-4
lines changed

compiler/rustc_attr_parsing/src/attributes/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ pub(crate) trait CombineAttributeParser<S: Stage>: 'static {
302302
type Item;
303303
/// A function that converts individual items (of type [`Item`](Self::Item)) into the final attribute.
304304
///
305-
/// For example, individual representations fomr `#[repr(...)]` attributes into an `AttributeKind::Repr(x)`,
305+
/// For example, individual representations from `#[repr(...)]` attributes into an `AttributeKind::Repr(x)`,
306306
/// where `x` is a vec of these individual reprs.
307307
const CONVERT: ConvertFn<Self::Item>;
308308

compiler/rustc_data_structures/src/graph/scc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ enum NodeState<N, S, A: Annotation> {
289289
#[derive(Copy, Clone, Debug)]
290290
enum WalkReturn<S, A: Annotation> {
291291
/// The walk found a cycle, but the entire component is not known to have
292-
/// been fully walked yet. We only know the minimum depth of this
292+
/// been fully walked yet. We only know the minimum depth of this
293293
/// component in a minimum spanning tree of the graph. This component
294294
/// is tentatively represented by the state of the first node of this
295295
/// cycle we met, which is at `min_depth`.

compiler/rustc_sanitizers/src/cfi/typeid/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ bitflags! {
2121
const GENERALIZE_REPR_C = 2;
2222
/// Normalizes integers for compatibility with Clang
2323
/// `-fsanitize-cfi-icall-experimental-normalize-integers` option for cross-language LLVM
24-
/// CFI and KCFI support.
24+
/// CFI and KCFI support.
2525
const NORMALIZE_INTEGERS = 4;
2626
/// Do not perform self type erasure for attaching a secondary type id to methods with their
2727
/// concrete self so they can be used as function pointers.

compiler/rustc_trait_selection/src/error_reporting/traits/on_unimplemented.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
309309
pub struct OnUnimplementedFormatString {
310310
/// Symbol of the format string, i.e. `"content"`
311311
symbol: Symbol,
312-
///The span of the format string, i.e. `"content"`
312+
/// The span of the format string, i.e. `"content"`
313313
span: Span,
314314
is_diagnostic_namespace_variant: bool,
315315
}

0 commit comments

Comments
 (0)