diff options
| author | Ubuntu <github@matdoes.dev> | 2022-12-09 15:13:14 +0000 |
|---|---|---|
| committer | Ubuntu <github@matdoes.dev> | 2022-12-09 15:13:14 +0000 |
| commit | ca00dbab12ab7de0bba462b9814b9f491b23da69 (patch) | |
| tree | 560bd906d9ca1fcb822290286e9bf5990826163a /azalea-protocol/src/lib.rs | |
| parent | f0097612473d20ebac21e8ae5eba32bf32c2fe42 (diff) | |
| parent | 70e2dfed16da8d5130460ea15b47701e622f4a9f (diff) | |
| download | azalea-drasl-ca00dbab12ab7de0bba462b9814b9f491b23da69.tar.xz | |
Merge branch 'main' of https://github.com/mat-1/azalea into main
Diffstat (limited to 'azalea-protocol/src/lib.rs')
| -rw-r--r-- | azalea-protocol/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/azalea-protocol/src/lib.rs b/azalea-protocol/src/lib.rs index 84aa35cc..3f838d2a 100644 --- a/azalea-protocol/src/lib.rs +++ b/azalea-protocol/src/lib.rs @@ -44,7 +44,8 @@ pub struct ServerAddress { impl<'a> TryFrom<&'a str> for ServerAddress { type Error = String; - /// Convert a Minecraft server address (host:port, the port is optional) to a ServerAddress + /// Convert a Minecraft server address (host:port, the port is optional) to + /// a ServerAddress fn try_from(string: &str) -> Result<Self, Self::Error> { if string.is_empty() { return Err("Empty string".to_string()); |
