Skip to content

Commit f861cd7

Browse files
committed
updated the documentation in feat-reference-distances.md:100 to match the implementation
1 parent eaefa14 commit f861cd7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

docs/feat-reference-distances.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@ We need to extend the application state to store the manual reference.
109109
}
110110
return `${feet}' ${inches}"`;
111111
}
112-
default: return `${meters.toFixed(2)} m`;
112+
default: {
113+
if (meters < 0.01) return `${(meters * 1000).toFixed(1)} mm`;
114+
if (meters < 1) return `${(meters * 100).toFixed(1)} cm`;
115+
return `${meters.toFixed(2)} m`;
116+
}
113117
}
114118
}
115119
```

0 commit comments

Comments
 (0)