Skip to content

Commit 5ddfbc2

Browse files
committed
Fix Query type docs
`give` no longer exists, `compute` is used to generate query results now.
1 parent 234c9f2 commit 5ddfbc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_interface/queries.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use std::mem;
2222
use syntax::{self, ast};
2323

2424
/// Represent the result of a query.
25-
/// This result can be stolen with the `take` method and returned with the `give` method.
25+
/// This result can be stolen with the `take` method and generated with the `compute` method.
2626
pub struct Query<T> {
2727
result: RefCell<Option<Result<T>>>,
2828
}
@@ -37,7 +37,7 @@ impl<T> Query<T> {
3737
}
3838

3939
/// 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.
40+
/// result will panic unless it is generated by calling the `compute` method.
4141
pub fn take(&self) -> T {
4242
self.result
4343
.borrow_mut()

0 commit comments

Comments
 (0)