Skip to content

Commit e36bb6b

Browse files
committed
Update unpack example
1 parent 9bbcea7 commit e36bb6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fabric/examples/rust/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async fn example_unpack_records() -> anyhow::Result<()> {
7676
let resolved = fabric.resolve("alice@bitcoin").await?.expect("handle exists");
7777

7878
// <doc:unpack-records>
79-
for record in resolved.zone.records.unpack()? {
79+
for record in resolved.zone.records.iter()? {
8080
match record {
8181
ParsedRecord::Txt { key, value } => {
8282
println!("txt {}={}", key, value.to_vec().join(", "))

0 commit comments

Comments
 (0)