Parcourir la source

fix 10.2.1

修改结构体返回类型
smart il y a 10 ans
Parent
commit
d78be9ae6b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      eBook/10.2.md

+ 1 - 1
eBook/10.2.md

@@ -19,7 +19,7 @@ func NewFile(fd int, name string) *File {
         return nil
     }
 
-    return &File(fd, name)
+    return &File{fd, name}
 }
 ```