Spellchecking compiler comments
This PR cleans up the rest of the spelling mistakes in the compiler comments. This PR does not change any literal or code spelling issues.
This commit is contained in:
@@ -234,7 +234,7 @@ pub enum UndefinedBehaviorInfo<'tcx> {
|
||||
},
|
||||
/// Something was divided by 0 (x / 0).
|
||||
DivisionByZero,
|
||||
/// Something was "remainded" by 0 (x % 0).
|
||||
/// Something was "remaineded" by 0 (x % 0).
|
||||
RemainderByZero,
|
||||
/// Signed division overflowed (INT_MIN / -1).
|
||||
DivisionOverflow,
|
||||
|
||||
@@ -2840,7 +2840,7 @@ impl<'tcx> UserTypeProjections {
|
||||
|
||||
/// Encodes the effect of a user-supplied type annotation on the
|
||||
/// subcomponents of a pattern. The effect is determined by applying the
|
||||
/// given list of proejctions to some underlying base type. Often,
|
||||
/// given list of projections to some underlying base type. Often,
|
||||
/// the projection element list `projs` is empty, in which case this
|
||||
/// directly encodes a type in `base`. But in the case of complex patterns with
|
||||
/// subpatterns and bindings, we want to apply only a *part* of the type to a variable,
|
||||
|
||||
@@ -126,7 +126,7 @@ pub enum UnusedUnsafe {
|
||||
/// > ``… because it's nested under this `unsafe fn` ``
|
||||
///
|
||||
/// the second HirId here indicates the first usage of the `unsafe` block,
|
||||
/// which allows retrival of the LintLevelSource for why that operation would
|
||||
/// which allows retrieval of the LintLevelSource for why that operation would
|
||||
/// have been permitted without the block
|
||||
InUnsafeFn(hir::HirId, hir::HirId),
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ use super::*;
|
||||
/// Preorder traversal of a graph.
|
||||
///
|
||||
/// Preorder traversal is when each node is visited after at least one of its predecessors. If you
|
||||
/// are familar with some basic graph theory, then this performs a depth first search and returns
|
||||
/// are familiar with some basic graph theory, then this performs a depth first search and returns
|
||||
/// nodes in order of discovery time.
|
||||
///
|
||||
/// ```text
|
||||
|
||||
Reference in New Issue
Block a user