Explorar o código

Fix docstring for SocketRef::into_inner(). NFC.

whitequark %!s(int64=5) %!d(string=hai) anos
pai
achega
30e7babf5c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/socket/ref_.rs

+ 1 - 1
src/socket/ref_.rs

@@ -55,7 +55,7 @@ impl<'a, T: Session + 'a> Ref<'a, T> {
     /// map a `&mut SocketRef<'a, XSocket>` to a `&'a mut XSocket` (note the lifetimes);
     /// be sure to call [new] afterwards.
     ///
-    /// [new_unchecked]: #method.new_unchecked
+    /// [new]: #method.new
     pub fn into_inner(mut ref_: Self) -> &'a mut T {
         ref_.consumed = true;
         ref_.socket