diff options
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()); |
