Docs: more examples and docs

This commit is contained in:
Jonathan Kelley committed 2021-06-24 11:09:38 -04:00
1 parent 100a78f321
commit 7fbaf69cab
9 files changed
+177 -54

No files matched your search

+1 -1
View File
@@ -778,7 +778,7 @@ Any function prefixed with "use" should not be called conditionally.
}
/// There are hooks going on here!
fn use_context<T: 'static>(&self) -> &'src Rc<T> {
fn use_context<T: 'static>(&self) -> &'src T {
self.try_use_context().unwrap()
}