Made some small assorted changes.

This commit is contained in:
Aaron Weiss 2017-06-20 11:47:05 -04:00
parent 2821b60e83
commit e7440d9b23
No known key found for this signature in database
GPG key ID: 0237035D9BF03AE2
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,6 @@ pub trait Connection {
fn reconnect(&self) -> Result<()>;
}
/// Useful internal type definitions.
type NetBufStream = BufStream<NetStream>;
@ -33,6 +32,7 @@ pub struct NetConnection {
port: Mutex<u16>,
stream: Mutex<NetBufStream>,
}
impl NetConnection {
fn new(host: &str, port: u16, stream: NetBufStream) -> NetConnection {
NetConnection {

View file

@ -12,7 +12,7 @@ pub struct IrcCodec {
}
impl IrcCodec {
/// Creates a new instance of IrcCodec wrapping a LineCodec with the specifiec encoding.
/// Creates a new instance of IrcCodec wrapping a LineCodec with the specific encoding.
pub fn new(label: &str) -> io::Result<IrcCodec> {
LineCodec::new(label).map(|codec| IrcCodec { inner: codec })
}