hare

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

commit ab06de6477d8306f0a0b87fea688100bddf3b226
parent f336caac9085a3b8c43aaf953b50f3855f85e935
Author: Alexey Yerin <yyp@disroot.org>
Date:   Sat,  2 Dec 2023 15:25:07 +0300

strconv: Remove base restrictions from doc comment of integertosb

Base restrictions are not mentioned anywhere else, so removing it for
consistency. strconv::base also specifies that it's an enum of all valid bases,
which replaces comments for specific functions.

Signed-off-by: Alexey Yerin <yyp@disroot.org>

Diffstat:
Mstrconv/numeric.ha | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/strconv/numeric.ha b/strconv/numeric.ha @@ -51,9 +51,9 @@ export fn unsignedtosb(n: types::unsigned, b: base) const str = { // [[strings::dup]] to duplicate the result. export fn unsignedtos(n: types::unsigned) const str = unsignedtosb(n, base::DEC); -// Converts any [[types::integer]] to a string in a given base, which must be 2, -// 8, 10, or 16. The return value is statically allocated and will be -// overwritten on subsequent calls; see [[strings::dup]] to duplicate the result. +// Converts any [[types::integer]] to a string in a given base. The return value +// is statically allocated and will be overwritten on subsequent calls; see +// [[strings::dup]] to duplicate the result. export fn integertosb(n: types::integer, b: base) const str = { match (n) { case let s: types::signed =>