Skip to content

Commit 17f0bb4

Browse files
committed
examples: Fix a deprecation warning
1 parent 0eed1c8 commit 17f0bb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/rust/snippets/getting_started.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async fn create_seed() -> Vec<u8> {
4545
let m = Mnemonic::generate_in_with(&mut rng, Language::English, 24).unwrap();
4646

4747
//Show seed phrase to user
48-
let _phrase = m.word_iter().fold("".to_string(), |c, n| c + " " + n);
48+
let _phrase = m.words().fold("".to_string(), |c, n| c + " " + n);
4949

5050
const EMPTY_PASSPHRASE: &str = "";
5151
let seed = &m.to_seed(EMPTY_PASSPHRASE)[0..32]; // Only need the first 32 bytes

0 commit comments

Comments
 (0)