Skip to content

Commit 37b8837

Browse files
committed
Fix typo, structs => fields.
1 parent d299baf commit 37b8837

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4603,7 +4603,7 @@ pub fn lookup_struct_fields(cx: &ctxt, did: ast::DefId) -> Vec<field_ty> {
46034603
if did.krate == ast::LOCAL_CRATE {
46044604
// We store the fields which are syntactically in each struct in cx. So
46054605
// we have to walk the inheritance chain of the struct to get all the
4606-
// structs (explicit and inherited) for a struct. If this is expensive
4606+
// fields (explicit and inherited) for a struct. If this is expensive
46074607
// we could cache the whole list of fields here.
46084608
let struct_fields = cx.struct_fields.borrow();
46094609
let mut results: SmallVector<&[field_ty]> = SmallVector::zero();

0 commit comments

Comments
 (0)