diff --git a/README.md b/README.md index b74b0a0..fa2094f 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ Look at `examples/custom_header.rs` for a full working example. ### Decoding ```rust -let token = decode::(&token, "secret", &Validation::default())?; +let token = decode::(&token, "secret".as_ref(), &Validation::default())?; // token is a struct with 2 params: header and claims ``` `decode` can error for a variety of reasons: