Skip to content

Commit ceb9bbf

Browse files
committed
auto merge of #17213 : mo/rust/fix_typos, r=aturon
2 parents 828e075 + 7caf2ab commit ceb9bbf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/doc/rust.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3698,7 +3698,7 @@ There are two varieties of pointer in Rust:
36983698
they exist to support interoperability with foreign code,
36993699
and writing performance-critical or low-level functions.
37003700

3701-
The standard library contains addtional 'smart pointer' types beyond references
3701+
The standard library contains additional 'smart pointer' types beyond references
37023702
and raw pointers.
37033703

37043704
### Function types

src/librustc/middle/save/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,8 @@ impl<'l, 'tcx, 'v> Visitor<'v> for DxrVisitor<'l, 'tcx> {
14061406
self.cur_scope),
14071407
// FIXME(nrc) what is this doing here?
14081408
def::DefStatic(_, _) => {}
1409-
_ => error!("unexpected defintion kind when processing collected paths: {:?}", *def)
1409+
_ => error!("unexpected definition kind when processing collected paths: {:?}",
1410+
*def)
14101411
}
14111412
}
14121413
self.collected_paths.clear();

0 commit comments

Comments
 (0)