on master help sign in
Merge pull request #43 from waywardmonkeys/fix-typos
ed2a40cNick Fitzgerald
examples/counter/src/lib.rs+1−1
@@ -3,7 +3,7 @@ use dodrio::Render;
3use log::*;
3use log::*;
4use wasm_bindgen::prelude::*;
4use wasm_bindgen::prelude::*;
5
5
6−/// A counter that can be incremented and decrmented!
6+/// A counter that can be incremented and decremented!
7struct Counter {
7struct Counter {
8 count: isize,
8 count: isize,
9}
9}
src/cached.rs+1−1
@@ -72,7 +72,7 @@ impl<R> Cached<R> {
72 /// # Example
72 /// # Example
73 ///
73 ///
74 /// The `Cached<Hello>` component must have its cache invalidated whenever
74 /// The `Cached<Hello>` component must have its cache invalidated whenever
75− /// the `who` string is changed, or else the cached rendering whill keep
75+ /// the `who` string is changed, or else the cached rendering will keep
76 /// displaying greetings to old `who`s.
76 /// displaying greetings to old `who`s.
77 ///
77 ///
78 /// ```
78 /// ```
src/node.rs+1−1
@@ -36,7 +36,7 @@ pub struct ElementNode<'a> {
36///
36///
37/// 1. The virtual DOM's root rendering component.
37/// 1. The virtual DOM's root rendering component.
38/// 2. A capability to scheduler virtual DOM re-rendering.
38/// 2. A capability to scheduler virtual DOM re-rendering.
39−/// 3. The event that ocurred.
39+/// 3. The event that occurred.
40pub type ListenerCallback<'a> =
40pub type ListenerCallback<'a> =
41 &'a (dyn Fn(&mut dyn RootRender, VdomWeak, web_sys::Event) + 'static);
41 &'a (dyn Fn(&mut dyn RootRender, VdomWeak, web_sys::Event) + 'static);
42
42
src/vdom.rs+1−1
@@ -140,7 +140,7 @@ impl Vdom {
140 // Create a dummy `<div/>` in our container.
140 // Create a dummy `<div/>` in our container.
141 let current_root = Node::element(&dom_buffers[0], "div", [], [], []);
141 let current_root = Node::element(&dom_buffers[0], "div", [], [], []);
142 let current_root = Some(unsafe { extend_node_lifetime(current_root) });
142 let current_root = Some(unsafe { extend_node_lifetime(current_root) });
143− let window = web_sys::window().expect("should have acess to the Window");
143+ let window = web_sys::window().expect("should have access to the Window");
144 let document = window
144 let document = window
145 .document()
145 .document()
146 .expect("should have access to the Document");
146 .expect("should have access to the Document");
tests/web/main.rs+1−1
@@ -176,7 +176,7 @@ where
176 .map_err(|e| JsValue::from(e.to_string()))
176 .map_err(|e| JsValue::from(e.to_string()))
177}
177}
178
178
179−/// A helper macro for decalaring a bunch of `assert_before_after` tests.
179+/// A helper macro for declaring a bunch of `assert_before_after` tests.
180#[macro_export]
180#[macro_export]
181macro_rules! before_after {
181macro_rules! before_after {
182 ( $(
182 ( $(