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 0eed1c8 commit 17f0bb4Copy full SHA for 17f0bb4
examples/rust/snippets/getting_started.rs
@@ -45,7 +45,7 @@ async fn create_seed() -> Vec<u8> {
45
let m = Mnemonic::generate_in_with(&mut rng, Language::English, 24).unwrap();
46
47
//Show seed phrase to user
48
- let _phrase = m.word_iter().fold("".to_string(), |c, n| c + " " + n);
+ let _phrase = m.words().fold("".to_string(), |c, n| c + " " + n);
49
50
const EMPTY_PASSPHRASE: &str = "";
51
let seed = &m.to_seed(EMPTY_PASSPHRASE)[0..32]; // Only need the first 32 bytes
0 commit comments