commit b8cb75dfa038cc92a1835fe06ea941fd90bb3bff
parent 278c429f84c615d5283657ef704fe30a2ba09ffa
Author: Joe Finney <me@spxtr.net>
Date: Thu, 5 Oct 2023 16:48:46 -0700
Add comment to strconv::ffmt and strconv::fflags.
Signed-off-by: Joe Finney <me@spxtr.net>
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/strconv/ftos.ha b/strconv/ftos.ha
@@ -10,6 +10,7 @@ use memio;
use strings;
use types;
+// Format styles for the [[ftosf]] functions.
export type ffmt = enum {
// Scientific notation. Consists of a number in [1, 10), an 'e' (or 'E',
// if UPPER_EXP flag is present), then an exponent.
@@ -21,6 +22,7 @@ export type ffmt = enum {
G,
};
+// Flags for the [[ftosf]] functions.
export type fflags = enum uint {
// Use a sign for both positive and negative numbers.
SHOW_POS = 1 << 0,