aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-01-04 20:47:41 +0800
committerRunxi Yu <me@runxiyu.org>2025-01-04 20:47:41 +0800
commit8c8e330e785868268a5c69d54955435c3a1924d5 (patch)
tree7a544514123e72553b529783aa9c5be1a37795e6 /misc
parentREADME: Add warning about Linux-only system calls (diff)
downloadgo-lindenii-common-8c8e330e785868268a5c69d54955435c3a1924d5.tar.gz
go-lindenii-common-8c8e330e785868268a5c69d54955435c3a1924d5.tar.zst
go-lindenii-common-8c8e330e785868268a5c69d54955435c3a1924d5.zip
misc: Fix documentation comment notation
Diffstat (limited to 'misc')
-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)
}