From 81e5868e1ef5228f9aec6a52eb49b369a727571d Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Mon, 25 Jun 2018 12:21:16 -0400 Subject: [PATCH] Fix code example in README This won't compile if it isn't pub! Fixes https://github.com/rustwasm/wasm-bindgen/issues/309 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e668379..1509b4d 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ check out our [contribution policy]. ```rust #[wasm_bindgen] extern { - fn alert(s: &str); + pub fn alert(s: &str); } #[wasm_bindgen]