From 37b88374073d1e793402250e0ffb3900f23016c4 Mon Sep 17 00:00:00 2001 From: Ahmed Charles Date: Thu, 25 Sep 2014 04:51:18 -0700 Subject: [PATCH] Fix typo, structs => fields. --- src/librustc/middle/ty.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/middle/ty.rs b/src/librustc/middle/ty.rs index 3014eb35e22..1b78841ac35 100644 --- a/src/librustc/middle/ty.rs +++ b/src/librustc/middle/ty.rs @@ -4603,7 +4603,7 @@ pub fn lookup_struct_fields(cx: &ctxt, did: ast::DefId) -> Vec { if did.krate == ast::LOCAL_CRATE { // We store the fields which are syntactically in each struct in cx. So // we have to walk the inheritance chain of the struct to get all the - // structs (explicit and inherited) for a struct. If this is expensive + // fields (explicit and inherited) for a struct. If this is expensive // we could cache the whole list of fields here. let struct_fields = cx.struct_fields.borrow(); let mut results: SmallVector<&[field_ty]> = SmallVector::zero();