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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 9 deletions

View file

@ -7,7 +7,7 @@ on:
jobs: jobs:
release: release:
name: Publish to Github Relases name: Publish to Github Releases
outputs: outputs:
rc: ${{ steps.check-tag.outputs.rc }} rc: ${{ steps.check-tag.outputs.rc }}

View file

@ -40,7 +40,7 @@ All notable changes to this project will be documented in this file.
### Bug Fixes ### 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 ### Features
@ -78,7 +78,7 @@ All notable changes to this project will be documented in this file.
### Bug Fixes ### 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 ### Features
@ -171,7 +171,7 @@ All notable changes to this project will be documented in this file.
### Refactor ### 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 ## [0.16.0] - 2022-06-12

View file

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

View file

@ -206,7 +206,7 @@ pub struct Args {
impl Args { impl Args {
/// Parse command-line arguments. /// 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. /// error message to user.
pub fn parse(matches: ArgMatches) -> BoxResult<Args> { pub fn parse(matches: ArgMatches) -> BoxResult<Args> {
let port = *matches.get_one::<u16>("port").unwrap(); let port = *matches.get_one::<u16>("port").unwrap();