Skip to content

Commit f6dbc1a

Browse files
committed
Update doc examples
1 parent c4cc53d commit f6dbc1a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Cargo.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ license = "MIT/Apache-2.0"
77
categories = ["wasm", "web-programming", "gui"]
88
keywords = ["html", "pane", "splitview", "web", "svelte"]
99
readme = "README.md"
10+
repository = "https://github.com/jakmeier/div-rs"
11+
description = "Crate to ease web-programming including Rust as fist-class citizen."
1012

1113
[lib]
1214
crate-type = ["cdylib", "rlib"]
@@ -29,4 +31,5 @@ features = [
2931
]
3032

3133
[dev-dependencies]
32-
wasm-bindgen-test = "0.3"
34+
wasm-bindgen-test = "0.3"
35+
wasm-bindgen-futures = "0.4.18"

src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ pub fn init_to(id: &str) -> Result<(), DivError> {
3535
/// The specified dimensions restrict the area in which div are visible.
3636
/// # Example
3737
/// ```
38-
/// let width = 1280
39-
/// let height = 720
40-
/// div::init_ex("div-root", 0, 0, width, height);
38+
/// let width = 1280;
39+
/// let height = 720;
40+
/// div::init_ex(Some("div-root"), (0, 0), Some((width, height)));
4141
/// ```
4242
pub fn init_ex(
4343
id: Option<&str>,

0 commit comments

Comments
 (0)