From 6179532065ccb3293d1c7c375febb629032537db Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Sun, 10 Sep 2023 23:27:06 +0300 Subject: [PATCH] [Crate] Changeup a doc comment --- src/protocols/types.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/protocols/types.rs b/src/protocols/types.rs index 0174cc5..0d3c8c3 100644 --- a/src/protocols/types.rs +++ b/src/protocols/types.rs @@ -149,9 +149,8 @@ pub struct TimeoutSettings { } impl TimeoutSettings { - /// Construct new settings, passing None will block indefinitely. Passing - /// zero Duration throws - /// GDErrorKind::[InvalidInput]. + /// Construct new settings, passing None will block indefinitely. + /// Passing zero Duration throws GDErrorKind::[InvalidInput]. pub fn new(read: Option, write: Option) -> GDResult { if let Some(read_duration) = read { if read_duration == Duration::new(0, 0) { @@ -187,9 +186,9 @@ impl Default for TimeoutSettings { /// Generic extra request settings /// -/// Fields of this struct may not be used depending on which protocol is -/// selected, the individual fields link to the specific places they will be -/// used with additional documentation. +/// Fields of this struct may not be used depending on which protocol +/// is selected, the individual fields link to the specific places +/// they will be used with additional documentation. /// /// ## Examples /// Create minecraft settings with builder: