We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 234c9f2 commit 5ddfbc2Copy full SHA for 5ddfbc2
src/librustc_interface/queries.rs
@@ -22,7 +22,7 @@ use std::mem;
22
use syntax::{self, ast};
23
24
/// Represent the result of a query.
25
-/// 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.
26
pub struct Query<T> {
27
result: RefCell<Option<Result<T>>>,
28
}
@@ -37,7 +37,7 @@ impl<T> Query<T> {
37
38
39
/// Takes ownership of the query result. Further attempts to take or peek the query
40
- /// result will panic unless it is returned by calling the `give` method.
+ /// result will panic unless it is generated by calling the `compute` method.
41
pub fn take(&self) -> T {
42
self.result
43
.borrow_mut()
0 commit comments