浏览代码

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

whitequark 5 年之前
父节点
当前提交
30e7babf5c
共有 1 个文件被更改,包括 1 次插入1 次删除
  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