Skip to content

Commit 8da2e4d

Browse files
authored
Merge pull request #830 from alexcrichton/fix-web-sys-dep
Fix dependencies sections for `web-sys` in guide
2 parents b66d106 + 87176b1 commit 8da2e4d

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

guide/src/web-sys/using-web-sys.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ on the git version of it, and of `wasm-bindgen`:*
88
```toml
99
[dependencies]
1010
wasm-bindgen = { git = "https://github.com/rustwasm/wasm-bindgen" }
11-
web-sys = {
12-
git = "https://github.com/rustwasm/wasm-bindgen",
13-
features = [
14-
]
15-
}
11+
12+
[dependencies.web-sys]
13+
git = "https://github.com/rustwasm/wasm-bindgen"
14+
features = [
15+
]
1616
```
1717

1818
## Enable the cargo features for the APIs you're using
@@ -30,12 +30,11 @@ documentation][search-resize-to]. We would find [the
3030
in `Cargo.toml`:
3131

3232
```toml
33-
web-sys = {
34-
git = "https://github.com/rustwasm/wasm-bindgen",
35-
features = [
36-
"Window",
37-
]
38-
}
33+
[dependencies.web-sys]
34+
git = "https://github.com/rustwasm/wasm-bindgen"
35+
features = [
36+
"Window"
37+
]
3938
```
4039

4140
## Call the method!

0 commit comments

Comments
 (0)