hare

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

commit b7d167f0285fddaa1113e53f462bba03193f827f
parent 028f9ea24982818a859c5553f1ab6f51362276cf
Author: Armin Weigl <tb46305@gmail.com>
Date:   Sat, 13 Feb 2021 17:35:28 +0100

strconv: style

Diffstat:
Mstrconv/itos.ha | 8++++----
Mstrconv/utos.ha | 8++++----
2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/strconv/itos.ha b/strconv/itos.ha @@ -51,20 +51,20 @@ export fn itosb(i: int, b: base) const str = i64tosb(i, b); // duplicate the result. export fn i64tos(i: i64) const str = i64tosb(i, base::DEC); -// Converts a i8 to a string in base 10. The return value is statically +// Converts a i32 to a string in base 10. The return value is statically // allocated and will be overwritten on subsequent calls; see [strings::dup] to // duplicate the result. -export fn i8tos(i: i8) const str = i64tos(i); +export fn i32tos(i: i32) const str = i64tos(i); // Converts a i16 to a string in base 10. The return value is statically // allocated and will be overwritten on subsequent calls; see [strings::dup] to // duplicate the result. export fn i16tos(i: i16) const str = i64tos(i); -// Converts a i32 to a string in base 10. The return value is statically +// Converts a i8 to a string in base 10. The return value is statically // allocated and will be overwritten on subsequent calls; see [strings::dup] to // duplicate the result. -export fn i32tos(i: i32) const str = i64tos(i); +export fn i8tos(i: i8) const str = i64tos(i); // Converts a int to a string in base 10. The return value is statically // allocated and will be overwritten on subsequent calls; see [strings::dup] to diff --git a/strconv/utos.ha b/strconv/utos.ha @@ -73,20 +73,20 @@ export fn uptrtosb(uptr: uintptr, b: base) const str = u64tosb(uptr: u64, b); // duplicate the result. export fn u64tos(u: u64) const str = u64tosb(u, base::DEC); -// Converts a u8 to a string in base 10. The return value is statically +// Converts a u32 to a string in base 10. The return value is statically // allocated and will be overwritten on subsequent calls; see [strings::dup] to // duplicate the result. -export fn u8tos(u: u8) const str = u64tos(u); +export fn u32tos(u: u32) const str = u64tos(u); // Converts a u16 to a string in base 10. The return value is statically // allocated and will be overwritten on subsequent calls; see [strings::dup] to // duplicate the result. export fn u16tos(u: u16) const str = u64tos(u); -// Converts a u32 to a string in base 10. The return value is statically +// Converts a u8 to a string in base 10. The return value is statically // allocated and will be overwritten on subsequent calls; see [strings::dup] to // duplicate the result. -export fn u32tos(u: u32) const str = u64tos(u); +export fn u8tos(u: u8) const str = u64tos(u); // Converts a uint to a string in base 10. The return value is statically // allocated and will be overwritten on subsequent calls; see [strings::dup] to