on master help sign in
Fix misleading comments about render component in examples
e7c524cMichal
examples/game-of-life/src/lib.rsmode 100644 → 100755+1−1
@@ -172,7 +172,7 @@ pub fn run() {
172 // Create a new Game of Life `Universe` render component.
172 // Create a new Game of Life `Universe` render component.
173 let universe = Universe::new();
173 let universe = Universe::new();
174
174
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
176 // `<body>`.
176 // `<body>`.
177 let vdom = Vdom::new(body.as_ref(), universe);
177 let vdom = Vdom::new(body.as_ref(), universe);
178
178
examples/js-component/src/lib.rsmode 100644 → 100755+1−1
@@ -54,7 +54,7 @@ pub fn run() {
54 // Create a new `GreetingViaJs` render component.
54 // Create a new `GreetingViaJs` render component.
55 let component = GreetingViaJs::new("World");
55 let component = GreetingViaJs::new("World");
56
56
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
58 // `<body>`.
58 // `<body>`.
59 let vdom = Vdom::new(body.as_ref(), component);
59 let vdom = Vdom::new(body.as_ref(), component);
60
60
examples/moire/src/lib.rsmode 100644 → 100755+1−1
@@ -23,7 +23,7 @@ pub fn run() {
23 // Create a new `Moire` render component.
23 // Create a new `Moire` render component.
24 let component = Moire::new();
24 let component = Moire::new();
25
25
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
27 // scene.
27 // scene.
28 let vdom = Vdom::new(&scene, component);
28 let vdom = Vdom::new(&scene, component);
29
29