Small cleanup

This commit is contained in:
mcarton
2016-01-29 22:19:14 +01:00
parent 1b9fbd8801
commit 3a39bbaf74
3 changed files with 6 additions and 6 deletions

View File

@@ -649,7 +649,7 @@ fn is_cast_ty_equal(left: &Ty, right: &Ty) -> bool {
}
}
/// Return the pre-expansion span is this comes from a expansion of the macro `name`.
/// Return the pre-expansion span if is this comes from an expansion of the macro `name`.
pub fn is_expn_of(cx: &LateContext, mut span: Span, name: &str) -> Option<Span> {
loop {
let span_name_span = cx.tcx.sess.codemap().with_expn_info(span.expn_id, |expn| {