We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1c2240 commit c58f88aCopy full SHA for c58f88a
README.md
@@ -97,14 +97,14 @@ println!("Result: {:x}", hash);
97
98
In this example `hash` has type `GenericArray<u8, U32>`, which is a generic alternative to `[u8; 32]` defined in the [`generic-array`] crate.
99
100
-Alternatively, you can use chained approach, which is equivalent to the previous example:
+Alternatively, you can use a chained approach, which is equivalent to the previous example:
101
102
```rust
103
use sha2::{Sha256, Digest};
104
105
let hash = Sha256::new()
106
- .chain(b"Hello world!")
107
- .chain("String data")
+ .chain_update(b"Hello world!")
+ .chain_update("String data")
108
.finalize();
109
println!("Result: {:x}", hash);
110
```
0 commit comments