From 8c8e330e785868268a5c69d54955435c3a1924d5 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 4 Jan 2025 20:47:41 +0800 Subject: misc: Fix documentation comment notation --- misc/open_file.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'misc') 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) } -- cgit v1.2.3