From 87176b15bc66b71a0f85761288a2339cb7831c18 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 14 Sep 2018 14:05:04 -0700 Subject: [PATCH] Fix dependencies sections for `web-sys` in guide Closes #829 --- guide/src/web-sys/using-web-sys.md | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/guide/src/web-sys/using-web-sys.md b/guide/src/web-sys/using-web-sys.md index 2b3950f3..48bf5f03 100644 --- a/guide/src/web-sys/using-web-sys.md +++ b/guide/src/web-sys/using-web-sys.md @@ -8,11 +8,11 @@ on the git version of it, and of `wasm-bindgen`:* ```toml [dependencies] wasm-bindgen = { git = "https://github.com/rustwasm/wasm-bindgen" } -web-sys = { - git = "https://github.com/rustwasm/wasm-bindgen", - features = [ - ] -} + +[dependencies.web-sys] +git = "https://github.com/rustwasm/wasm-bindgen" +features = [ +] ``` ## Enable the cargo features for the APIs you're using @@ -30,12 +30,11 @@ documentation][search-resize-to]. We would find [the in `Cargo.toml`: ```toml -web-sys = { - git = "https://github.com/rustwasm/wasm-bindgen", - features = [ - "Window", - ] -} +[dependencies.web-sys] +git = "https://github.com/rustwasm/wasm-bindgen" +features = [ + "Window" +] ``` ## Call the method!