diff options
author | Runxi Yu <me@runxiyu.org> | 2025-01-04 20:47:41 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-01-04 20:47:41 +0800 |
commit | 8c8e330e785868268a5c69d54955435c3a1924d5 (patch) | |
tree | 7a544514123e72553b529783aa9c5be1a37795e6 /misc/open_file.go | |
parent | README: Add warning about Linux-only system calls (diff) | |
download | go-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/open_file.go')
-rw-r--r-- | misc/open_file.go | 4 |
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) } |