]> OzVa Git service - ozva-cloud/commitdiff
docs: fix typos (#147)
authorKian-Meng Ang <kianmeng.ang@gmail.com>
Sat, 10 Dec 2022 01:18:54 +0000 (09:18 +0800)
committerGitHub <noreply@github.com>
Sat, 10 Dec 2022 01:18:54 +0000 (09:18 +0800)
Found via `codespell -S target -L crate,nd`

.github/workflows/release.yaml
CHANGELOG.md
assets/index.js
src/args.rs

index de9879e08727e17a6d02e09bee9683053c47194e..199da713a1d17e5e4d1125b584056dc687926c3d 100644 (file)
@@ -7,7 +7,7 @@ on:
 
 jobs:
   release:
-    name: Publish to Github Relases
+    name: Publish to Github Releases
     outputs:
       rc: ${{ steps.check-tag.outputs.rc }}
 
index 3d3de345ba616a028baa1cca0a203d81be57350c..bf9f3f4dbfcad44ae28fd99ce9ae2708df0f91ae 100644 (file)
@@ -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
 
index d5d5c1e531a781235d5b2e222e9c24809f1399c3..aef3018644620a3b5fd5b4e1829d4755e3244258 100644 (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) + "%";
   }
 }
 
index b727539b0d176aca0d6fa6e9df494777085d3ea6..d855e5b27d41609553c748e69c6845a9aabaa4ae 100644 (file)
@@ -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<Args> {
         let port = *matches.get_one::<u16>("port").unwrap();