on master help sign in
Merge pull request #43 from waywardmonkeys/fix-typos

Fix typos.

commited2a40ca7bc77c7f75fd96b365a41b9271b74533 authorNick Fitzgerald <fitzgen@gmail.com> dateMon 18 Mar 2019, 11:15 (8 years ago) parentb159bbd4533be4
5 files changed+5−5
examples/counter/src/lib.rs+1−1 src/cached.rs+1−1 src/node.rs+1−1 src/vdom.rs+1−1 tests/web/main.rs+1−1
examples/counter/src/lib.rs+1−1
@@ -3,7 +3,7 @@ use dodrio::Render;
33use log::*;
44use wasm_bindgen::prelude::*;
55
6−/// A counter that can be incremented and decrmented!
6+/// A counter that can be incremented and decremented!
77struct Counter {
88 count: isize,
99}
src/cached.rs+1−1
@@ -72,7 +72,7 @@ impl<R> Cached<R> {
7272 /// # Example
7373 ///
7474 /// 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
7676 /// displaying greetings to old `who`s.
7777 ///
7878 /// ```
src/node.rs+1−1
@@ -36,7 +36,7 @@ pub struct ElementNode<'a> {
3636///
3737/// 1. The virtual DOM's root rendering component.
3838/// 2. A capability to scheduler virtual DOM re-rendering.
39−/// 3. The event that ocurred.
39+/// 3. The event that occurred.
4040pub type ListenerCallback<'a> =
4141 &'a (dyn Fn(&mut dyn RootRender, VdomWeak, web_sys::Event) + 'static);
4242
src/vdom.rs+1−1
@@ -140,7 +140,7 @@ impl Vdom {
140140 // Create a dummy `<div/>` in our container.
141141 let current_root = Node::element(&dom_buffers[0], "div", [], [], []);
142142 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");
144144 let document = window
145145 .document()
146146 .expect("should have access to the Document");
tests/web/main.rs+1−1
@@ -176,7 +176,7 @@ where
176176 .map_err(|e| JsValue::from(e.to_string()))
177177}
178178
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.
180180#[macro_export]
181181macro_rules! before_after {
182182 ( $(