From ea14b430d7c305e6758a050f7e4da6676f2ded24 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 12 Oct 2021 14:49:28 +0200 Subject: [PATCH] Fix incorrect spelling (#76) --- tokio-rustls/src/lib.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tokio-rustls/src/lib.rs b/tokio-rustls/src/lib.rs index eedf463..1e3caf7 100644 --- a/tokio-rustls/src/lib.rs +++ b/tokio-rustls/src/lib.rs @@ -161,22 +161,22 @@ pub struct Connect(MidHandshake>); pub struct Accept(MidHandshake>); /// Like [Connect], but returns `IO` on failure. -pub struct FailableConnect(MidHandshake>); +pub struct FallibleConnect(MidHandshake>); /// Like [Accept], but returns `IO` on failure. -pub struct FailableAccept(MidHandshake>); +pub struct FallibleAccept(MidHandshake>); impl Connect { #[inline] - pub fn into_failable(self) -> FailableConnect { - FailableConnect(self.0) + pub fn into_fallible(self) -> FallibleConnect { + FallibleConnect(self.0) } } impl Accept { #[inline] - pub fn into_failable(self) -> FailableAccept { - FailableAccept(self.0) + pub fn into_fallible(self) -> FallibleAccept { + FallibleAccept(self.0) } } @@ -198,7 +198,7 @@ impl Future for Accept { } } -impl Future for FailableConnect { +impl Future for FallibleConnect { type Output = Result, (io::Error, IO)>; #[inline] @@ -207,7 +207,7 @@ impl Future for FailableConnect { } } -impl Future for FailableAccept { +impl Future for FallibleAccept { type Output = Result, (io::Error, IO)>; #[inline]