hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 9eef27519ffb59ed1e8b11dcf7cb58a62ddcb262
parent cb6e8a1929f99f61b1fc6e00aa61c1a4ef0a6bf0
Author: Alexey Yerin <yyp@disroot.org>
Date:   Tue, 20 Apr 2021 20:41:04 +0300

unix/passwd: update refs to look better in haredoc

Diffstat:
Munix/passwd/passwd.ha | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/unix/passwd/passwd.ha b/unix/passwd/passwd.ha @@ -23,7 +23,7 @@ export type pwent = struct { }; // Reads a Unix-like password entry from a stream. The caller must free the -// result using [[unix::passwd::pwent_finish]]. +// result using [[pwent_finish]]. export fn nextpw(stream: *io::stream) (pwent | io::EOF | io::error | invalid) = { let line = match (bufio::scanline(stream)?) { _: io::EOF => return io::EOF, @@ -75,7 +75,7 @@ export fn pwent_finish(ent: pwent) void = { // database file at /etc/passwd. Aborts if that file doesn't exist or is not // properly formatted. // -// See [[unix::passwd::nextpw]] for low-level parsing API. +// See [[nextpw]] for low-level parsing API. export fn getuser(username: str) (pwent | void) = { let file = match (os::open("/etc/passwd")) { s: *io::stream => s,