docs: fix typos (#147)

Found via `codespell -S target -L crate,nd`
This commit is contained in:
Kian-Meng Ang
2022-12-10 09:18:54 +08:00
committed by GitHub
parent f061365587
commit 7eef4407fc
4 changed files with 9 additions and 9 deletions

View File

@@ -498,11 +498,11 @@ function formatDuration(seconds) {
return `${padZero(h, 2)}:${padZero(m, 2)}:${padZero(s, 2)}`;
}
function formatPercent(precent) {
if (precent > 10) {
return precent.toFixed(1) + "%";
function formatPercent(percent) {
if (percent > 10) {
return percent.toFixed(1) + "%";
} else {
return precent.toFixed(2) + "%";
return percent.toFixed(2) + "%";
}
}