Explorar el Código

fixed formatting on acceptor doc

rachel-rose hace 5 años
padre
commit
542d4e3a3a
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  1. 5 5
      src/net/acceptor.rs

+ 5 - 5
src/net/acceptor.rs

@@ -10,8 +10,8 @@ use crate::system::{StoppableTask, StoppableTaskPtr, Subscriber, SubscriberPtr,
 /// Atomic pointer to Acceptor class.
 pub type AcceptorPtr = Arc<Acceptor>;
 
-/// Handles the acceptance of inbound socket connections. Used to start listening on a local socket
-/// address, to accept incoming connections and to handle network errors.
+/// Handles the acceptance of inbound socket connections. Used to start listening
+/// on a local socket address, to accept incoming connections and to handle network errors.
 pub struct Acceptor {
     channel_subscriber: SubscriberPtr<NetResult<ChannelPtr>>,
     task: StoppableTaskPtr,
@@ -25,9 +25,9 @@ impl Acceptor {
             task: StoppableTask::new(),
         })
     }
-    /// Start accepting inbound socket connections. Creates a listener to start listening on a
-    /// local socket address. Then runs an accept loop in a new thread, erroring if a connection
-    /// problem occurs.
+    /// Start accepting inbound socket connections. Creates a listener to start
+    /// listening on a local socket address. Then runs an accept loop in a new
+    /// thread, erroring if a connection problem occurs.
     pub fn start(
         self: Arc<Self>,
         accept_addr: SocketAddr,