diff --git a/src/librustc_interface/queries.rs b/src/librustc_interface/queries.rs index 6103d42c5dbcb..d1fbb949fb164 100644 --- a/src/librustc_interface/queries.rs +++ b/src/librustc_interface/queries.rs @@ -22,7 +22,7 @@ use std::mem; use syntax::{self, ast}; /// Represent the result of a query. -/// This result can be stolen with the `take` method and returned with the `give` method. +/// This result can be stolen with the `take` method and generated with the `compute` method. pub struct Query { result: RefCell>>, } @@ -37,7 +37,7 @@ impl Query { } /// Takes ownership of the query result. Further attempts to take or peek the query - /// result will panic unless it is returned by calling the `give` method. + /// result will panic unless it is generated by calling the `compute` method. pub fn take(&self) -> T { self.result .borrow_mut()