Skip to content

Commit 45e7b89

Browse files
committed
s/class/struct/ in an error message.
1 parent bf0d4cc commit 45e7b89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustc/middle/typeck/check.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ fn check_struct(ccx: @crate_ctxt, struct_def: @ast::struct_def,
429429
}
430430
// Check that there's at least one field
431431
if struct_def.fields.len() < 1u {
432-
ccx.tcx.sess.span_err(span, ~"a class must have at least one field");
432+
ccx.tcx.sess.span_err(span, ~"a struct must have at least one field");
433433
}
434434
// Check that the class is instantiable
435435
check_instantiable(ccx.tcx, span, id);

0 commit comments

Comments
 (0)