diff options
Diffstat (limited to 'azalea-client/src/local_player.rs')
| -rw-r--r-- | azalea-client/src/local_player.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/azalea-client/src/local_player.rs b/azalea-client/src/local_player.rs index 4062e32e..977b38f3 100644 --- a/azalea-client/src/local_player.rs +++ b/azalea-client/src/local_player.rs @@ -63,13 +63,12 @@ pub struct PermissionLevel(pub u8); /// /// ``` /// # use azalea_client::local_player::TabList; -/// # fn example(client: &azalea_client::Client) { -/// let tab_list = client.component::<TabList>(); -/// println!("Online players:"); -/// for (uuid, player_info) in tab_list.iter() { -/// println!("- {} ({}ms)", player_info.profile.name, player_info.latency); +/// fn example(tab_list: &TabList) { +/// println!("Online players:"); +/// for (uuid, player_info) in tab_list.iter() { +/// println!("- {} ({}ms)", player_info.profile.name, player_info.latency); +/// } /// } -/// # } /// ``` /// /// For convenience, `TabList` is also a resource in the ECS. |
