File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ use std::mem;
22
22
use syntax:: { self , ast} ;
23
23
24
24
/// 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.
26
26
pub struct Query < T > {
27
27
result : RefCell < Option < Result < T > > > ,
28
28
}
@@ -37,7 +37,7 @@ impl<T> Query<T> {
37
37
}
38
38
39
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.
40
+ /// result will panic unless it is generated by calling the `compute ` method.
41
41
pub fn take ( & self ) -> T {
42
42
self . result
43
43
. borrow_mut ( )
You can’t perform that action at this time.
0 commit comments