hare

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

commit 65e305e063254a520852ae5a291db9f4dcc4bd09
parent f205a7318b72cbb69f1506c813452e0d754217ff
Author: Sebastian <sebastian@sebsite.pw>
Date:   Sat, 28 Oct 2023 02:36:13 -0400

all: remove self-namespace from doc refs

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Merrors/rt.ha | 5+++--
Mfs/README | 2+-
Mfs/fs.ha | 2+-
Mio/+freebsd/platform_file.ha | 2+-
Mstrings/sub.ha | 4++--
5 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/errors/rt.ha b/errors/rt.ha @@ -3,8 +3,9 @@ use rt; -// Wraps an [[rt::errno]] to produce an [[errors::opaque_]]. This is a non-portable -// interface which is mainly provided to support internal stdlib requirements. +// Wraps an [[rt::errno]] to produce an [[error]], which may be [[opaque_]]. +// This is a non-portable interface which is mainly provided to support internal +// stdlib requirements. export fn errno(errno: rt::errno) error = { switch (errno) { case rt::ECONNREFUSED => diff --git a/fs/README b/fs/README @@ -1,4 +1,4 @@ The fs module provides an abstracted interface for accessing an arbitrary filesystem. If you want to work with the host filesystem, you probably want to refer to the functions available in [[os::]] instead, which provides an -implementation of [[fs::fs]] for the host filesystem. +implementation of [[fs]] for the host filesystem. diff --git a/fs/fs.ha b/fs/fs.ha @@ -145,7 +145,7 @@ export fn move(fs: *fs, oldpath: str, newpath: str) (void | error) = { // Returns an iterator for a path, which yields the contents of a directory. // Pass empty string to yield from the root. The order in which entries are -// returned is undefined. The return value must be finished with [[fs::finish]]. +// returned is undefined. The return value must be finished with [[finish]]. export fn iter(fs: *fs, path: str) (*iterator | error) = { match (fs.iter) { case null => diff --git a/io/+freebsd/platform_file.ha b/io/+freebsd/platform_file.ha @@ -9,7 +9,7 @@ use rt; // require a [[file]] with some OS-level handle backing it - this type is used // for such APIs. // -// On FreeBSD, [[io::file]] is a file descriptor. +// On FreeBSD, [[file]] is a file descriptor. export type file = int; // Opens a Unix file descriptor as a file. This is a low-level interface, to diff --git a/strings/sub.ha b/strings/sub.ha @@ -21,8 +21,8 @@ fn utf8_byte_len_bounded(iter: *iterator, end: size) size = { }; // Returns a substring in the range [start, end - 1], where each argument is the -// index of the Nth rune. If the end argument is given as [[strings::end]], the -// end of the substring is the end of the original string. The lifetime of the +// index of the Nth rune. If the end argument is given as [[end]], the end of +// the substring is the end of the original string. The lifetime of the // substring is the same as that of the original string. // // Note that substringing runewise is not always the correct thing to do, and it