on master help sign in
Fill out missing doc comment
2cab2b9Nick Fitzgerald
src/vdom.rs+3−1
@@ -515,7 +515,9 @@ impl VdomWeak {
515 }
515 }
516 }
516 }
517
517
518− /// TODO
518+ /// Replace the root rendering component with the new `root`.
519+ ///
520+ /// Returns a future that resolves to the *old* root component.
519 pub fn set_component(
521 pub fn set_component(
520 self,
522 self,
521 root: Box<dyn RootRender>,
523 root: Box<dyn RootRender>,