aboutsummaryrefslogtreecommitdiff
path: root/misc/open_file.go
diff options
context:
space:
mode:
Diffstat (limited to 'misc/open_file.go')
-rw-r--r--misc/open_file.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/open_file.go b/misc/open_file.go
index 6767961..2ee53db 100644
--- a/misc/open_file.go
+++ b/misc/open_file.go
@@ -45,13 +45,13 @@ func Open_file_beneath(dir Dir_t, filename string, flags int, perms os.FileMode)
}
// Open a directory as read-only and return a Dir_t to it. The caller is
-// responsible for closing the directory with [[Close_directory]].
+// responsible for closing the directory with [Close_directory].
func Open_directory_readonly(path string) (Dir_t, error) {
_fd, err := syscall.Open(path, os.O_RDONLY|syscall.O_DIRECTORY, 0)
return Dir_t{fd: _fd, name: path}, err
}
-// Close a directory returned by [[Open_directory_readonly]].
+// Close a directory returned by [Open_directory_readonly].
func Close_directory(dir Dir_t) error {
return syscall.Close(dir.fd)
}