From 7eef4407fc57854eb13b14e69562eebecd94de23 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Sat, 10 Dec 2022 09:18:54 +0800 Subject: [PATCH] docs: fix typos (#147) Found via `codespell -S target -L crate,nd` --- .github/workflows/release.yaml | 2 +- CHANGELOG.md | 6 +++--- assets/index.js | 8 ++++---- src/args.rs | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index de9879e..199da71 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -7,7 +7,7 @@ on: jobs: release: - name: Publish to Github Relases + name: Publish to Github Releases outputs: rc: ${{ steps.check-tag.outputs.rc }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d3de34..bf9f3f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,7 +40,7 @@ All notable changes to this project will be documented in this file. ### Bug Fixes -- File path contains special charactors ([#114](https://github.com/sigoden/dufs/issues/114)) +- File path contains special characters ([#114](https://github.com/sigoden/dufs/issues/114)) ### Features @@ -78,7 +78,7 @@ All notable changes to this project will be documented in this file. ### Bug Fixes -- Unexpect stack overflow when searching a lot ([#87](https://github.com/sigoden/dufs/issues/87)) +- Unexpected stack overflow when searching a lot ([#87](https://github.com/sigoden/dufs/issues/87)) ### Features @@ -171,7 +171,7 @@ All notable changes to this project will be documented in this file. ### Refactor -- Trival changes ([#41](https://github.com/sigoden/dufs/issues/41)) +- Trivial changes ([#41](https://github.com/sigoden/dufs/issues/41)) ## [0.16.0] - 2022-06-12 diff --git a/assets/index.js b/assets/index.js index d5d5c1e..aef3018 100644 --- a/assets/index.js +++ b/assets/index.js @@ -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) + "%"; } } diff --git a/src/args.rs b/src/args.rs index b727539..d855e5b 100644 --- a/src/args.rs +++ b/src/args.rs @@ -206,7 +206,7 @@ pub struct Args { impl Args { /// Parse command-line arguments. /// - /// If a parsing error ocurred, exit the process and print out informative + /// If a parsing error occurred, exit the process and print out informative /// error message to user. pub fn parse(matches: ArgMatches) -> BoxResult { let port = *matches.get_one::("port").unwrap();