Skip to content

Commit e740985

Browse files
committed
rustc: Fix typo in error message
1 parent d7ba59e commit e740985

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rustc/middle/resolve.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,10 +644,10 @@ fn visit_local_with_scope(e: @env, loc: @local, sc:scopes, v:vt<scopes>) {
644644
alt lookup_in_scope(*e, sc, loc.span, path_to_ident(an_ident),
645645
ns_val, false) {
646646
some(ast::def_variant(enum_id,variant_id)) {
647-
// Declaration shadows a enum that's in scope.
647+
// Declaration shadows an enum that's in scope.
648648
// That's an error.
649649
e.sess.span_err(loc.span,
650-
#fmt("declaration of `%s` shadows a enum that's in scope",
650+
#fmt("declaration of `%s` shadows an enum that's in scope",
651651
path_to_ident(an_ident)));
652652
}
653653
_ {}

0 commit comments

Comments
 (0)