Skip to content

Commit 57c7e67

Browse files
committed
fix example
1 parent cc36666 commit 57c7e67

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ Displaying some information about the current world.
2525
```no_run
2626
let mut client = dfhack_remote::connect().unwrap();
2727
let world_info = client.core().get_world_info().unwrap();
28+
let world_name = world_info.world_name.clone().unwrap().clone();
2829
2930
println!(
3031
"Welcome to {} ({})",
31-
world_info.world_name.last_name(),
32-
world_info.world_name.english_name()
32+
world_name.last_name(),
33+
world_name.english_name()
3334
);
3435
```
3536

0 commit comments

Comments
 (0)