mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
minor: correct typos
This commit is contained in:
parent
7219414e81
commit
db9fd370ee
23 changed files with 40 additions and 40 deletions
|
@ -359,8 +359,8 @@ impl MirEvalError {
|
|||
func
|
||||
)?;
|
||||
}
|
||||
Either::Right(clos) => {
|
||||
writeln!(f, "In {:?}", clos)?;
|
||||
Either::Right(close) => {
|
||||
writeln!(f, "In {:?}", close)?;
|
||||
}
|
||||
}
|
||||
let source_map = db.body_with_source_map(*def).1;
|
||||
|
|
|
@ -192,7 +192,7 @@ pub(crate) fn generics(db: &dyn DefDatabase, def: GenericDefId) -> Generics {
|
|||
/// and it doesn't store the closure types and fields.
|
||||
///
|
||||
/// Codes should not assume this ordering, and should always use methods available
|
||||
/// on this struct for retriving, and `TyBuilder::substs_for_closure` for creating.
|
||||
/// on this struct for retrieving, and `TyBuilder::substs_for_closure` for creating.
|
||||
pub(crate) struct ClosureSubst<'a>(pub(crate) &'a Substitution);
|
||||
|
||||
impl<'a> ClosureSubst<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue