From b14ce78c5f0ae61171861166c4e7cc55cf13f985 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 6 Aug 2026 03:57:40 +0000 Subject: [PATCH] Say what formatRadiusKm actually returns Its doc comment promised a fallback to Earth radii that the function has never had. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01WaySiNst4HhDXBHnMy8p5G --- src/app/shared/format/quantity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/shared/format/quantity.ts b/src/app/shared/format/quantity.ts index 5914927..3ba8403 100644 --- a/src/app/shared/format/quantity.ts +++ b/src/app/shared/format/quantity.ts @@ -36,7 +36,7 @@ export function formatPeriod(days: number): string { return `${(days / 365.25).toFixed(days / 365.25 < 100 ? 1 : 0)} yr`; } -/** Radius in kilometres, or Earth radii once the number stops being legible in km. */ +/** Radius in kilometres. */ export function formatRadiusKm(radiusKm: number): string { // Grouped on both sides of the decimal threshold: 69,911 km beside a bare 6371 km reads as two // different conventions rather than one.