summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2024-01-13 11:57:02 -0600
committerMichael Hunteman <michael@huntm.net>2024-01-13 11:57:02 -0600
commit4bc2b752c41dc9bdcbd037fde9a72a3a1f85792d (patch)
treed63586a1513a382b539ba0cfc0b780cdac713524
parenta7882bf037313667af9f74c684212fb1f649dc93 (diff)
temp: update comment for printf digit width
-rw-r--r--one/temp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/one/temp.c b/one/temp.c
index 54c99ba..cbbbc23 100644
--- a/one/temp.c
+++ b/one/temp.c
@@ -12,7 +12,7 @@ temp()
printf("Fahrenheit-Celsius table\n");
for (fahr = UPPER; fahr >= LOWER; fahr -= STEP) {
cel = (5.0 / 9.0) * (fahr - 32.0);
- /* 3 and 6 characters wide with 1 digit after the dot */
+ /* 3 and 6 digits wide with 0 and 1 digits after the dot */
printf("%3.0f %6.1f\n", fahr, cel);
}