~sircmpwn/hare

89d36b8310a18e9b40bb977a485102d58a952eec — Drew DeVault 7 months ago 4dd14a7
fmt: add hard stops to docs
1 files changed, 6 insertions(+), 6 deletions(-)

M fmt/fmt.ha
M fmt/fmt.ha => fmt/fmt.ha +6 -6
@@ 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;