on master help sign in
Fix misleading comments about render component in examples
commite7c524cc49a0f26782fec1d7e8450ba113544def authorMichal <ndwz123@gmail.com> dateWed 24 Apr 2019, 15:21 (8 years ago) parent1aa4600
3 files changed+3−3
examples/game-of-life/src/lib.rs+1−1 examples/js-component/src/lib.rs+1−1 examples/moire/src/lib.rs+1−1
examples/game-of-life/src/lib.rsmode 100644 → 100755+1−1
@@ -172,7 +172,7 @@ pub fn run() {
172172 // Create a new Game of Life `Universe` render component.
173173 let universe = Universe::new();
174174
175− // Create a virtual DOM and mount it and the `Hello` render component to the
175+ // Create a virtual DOM and mount it and the `Universe` render component to the
176176 // `<body>`.
177177 let vdom = Vdom::new(body.as_ref(), universe);
178178
examples/js-component/src/lib.rsmode 100644 → 100755+1−1
@@ -54,7 +54,7 @@ pub fn run() {
5454 // Create a new `GreetingViaJs` render component.
5555 let component = GreetingViaJs::new("World");
5656
57− // Create a virtual DOM and mount it and the `Hello` render component to the
57+ // Create a virtual DOM and mount it and the `GreetingViaJs` render component to the
5858 // `<body>`.
5959 let vdom = Vdom::new(body.as_ref(), component);
6060
examples/moire/src/lib.rsmode 100644 → 100755+1−1
@@ -23,7 +23,7 @@ pub fn run() {
2323 // Create a new `Moire` render component.
2424 let component = Moire::new();
2525
26− // Create a virtual DOM and mount it and the `Hello` render component to the
26+ // Create a virtual DOM and mount it and the `Moire` render component to the
2727 // scene.
2828 let vdom = Vdom::new(&scene, component);
2929