Skip to content

Commit

Permalink
Fix readme imports
Browse files Browse the repository at this point in the history
  • Loading branch information
friendlymatthew committed Aug 19, 2024
1 parent c26a420 commit 916ecba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ A base64 codec using wasm32 SIMD intrinsics.

```rust
use based64::{decode, encode};
use anyhow;
use wasm_bindgen::{wasm_bindgen, JsValue};

fn main() -> anyhow::Result<()> {
#[wasm_bindgen]
fn main() -> Result<(), JsValue> {
let ascii = b"VGhlIGRvZyBsaWNrZWQgdGhlIG9pbCwgYW5kIGV2ZXJ5Ym9keSBsYXVnaGVkLg==";
let message = decode(ascii)?; // The dog licked the oil, and everybody laughed.

Expand Down

0 comments on commit 916ecba

Please sign in to comment.