@@ -169,7 +169,7 @@ That is, they take an `&mut Providers` and mutate it in place. Usually
169169we use the formulation above just because it looks nice, but you could
170170as well do ` providers.type_of = type_of ` , which would be equivalent.
171171(Here, ` type_of ` would be a top-level function, defined as we saw
172- before.) So, if we wanted to have add a provider for some other query,
172+ before.) So, if we want to add a provider for some other query,
173173let's call it ` fubar ` , into the crate above, we might modify the ` provide() `
174174function like so:
175175
@@ -185,7 +185,7 @@ pub fn provide(providers: &mut Providers) {
185185fn fubar <'cx , 'tcx >(tcx : TyCtxt <'cx , 'tcx >, key : DefId ) -> Fubar <'tcx > { .. }
186186```
187187
188- NB. Most of the ` rustc_* ` crate only provide ** local
188+ NB. Most of the ` rustc_* ` crates only provide ** local
189189providers** . Almost all ** extern providers** wind up going through the
190190` rustc_metadata ` crate, which loads the information from the crate
191191metadata. But in some cases there are crates that provide queries for
@@ -201,7 +201,7 @@ Well, defining a query takes place in two steps:
2012011 . first, you have to specify the query name and arguments; and then,
2022022 . you have to supply query providers where needed.
203203
204- The specify the query name and arguments, you simply add an entry
204+ To specify the query name and arguments, you simply add an entry
205205to the big macro invocation in ` mod.rs ` . This will probably have changed
206206by the time you read this README, but at present it looks something
207207like:
0 commit comments