hare

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

commit 89d36b8310a18e9b40bb977a485102d58a952eec
parent 4dd14a76275e32338867717561a7e3b047bb06ee
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 25 Apr 2021 10:50:39 -0400

fmt: add hard stops to docs

Diffstat:
Mfmt/fmt.ha | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/fmt/fmt.ha b/fmt/fmt.ha @@ -64,22 +64,22 @@ export fn fprintfln( }; // Formats values for printing using the default format modifiers and writes -// them to [[os::stdout]] separated by spaces +// them to [[os::stdout]] separated by spaces. export fn print(args: formattable...) (io::error | size) = fprint(os::stdout, args...); // Formats values for printing using the default format modifiers and writes -// them to [[os::stdout]] separated by spaces and followed by a line feed +// them to [[os::stdout]] separated by spaces and followed by a line feed. export fn println(args: formattable...) (io::error | size) = fprintln(os::stdout, args...); // Formats values for printing using the default format modifiers and writes -// them to [[os::stderr]] separated by spaces +// them to [[os::stderr]] separated by spaces. export fn error(args: formattable...) (io::error | size) = fprint(os::stderr, args...); // Formats values for printing using the default format modifiers and writes -// them to [[os::stderr]] separated by spaces and followed by a line feed +// them to [[os::stderr]] separated by spaces and followed by a line feed. export fn errorln(args: formattable...) (io::error | size) = fprintln(os::stderr, args...); @@ -103,13 +103,13 @@ export fn bsprint(buf: []u8, args: formattable...) str = { }; // Formats values for printing using the default format modifiers and writes -// them to an [[io::stream]] separated by spaces and followed by a line feed +// them to an [[io::stream]] separated by spaces and followed by a line feed. export fn fprintln(s: *io::stream, args: formattable...) (io::error | size) = { return fprint(s, args...)? + io::write(s, ['\n': u32: u8])?; }; // Formats values for printing using the default format modifiers and writes -// them to an [[io::stream]] separated by spaces +// them to an [[io::stream]] separated by spaces. export fn fprint(s: *io::stream, args: formattable...) (io::error | size) = { let mod = modifiers { base = strconv::base::DEC, ... }; let n = 0z;