Fix typos (#925)

This commit is contained in:
Kian-Meng Ang 2022-06-26 18:19:47 +08:00 committed by GitHub
parent 5a6fcfccf5
commit e6b7ab5f91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 8 deletions

View file

@ -54,7 +54,7 @@ jobs:
- i686-pc-windows-msvc - i686-pc-windows-msvc
- x86_64-pc-windows-msvc - x86_64-pc-windows-msvc
# GNU: You typically only need to test Windows GNU if you're # GNU: You typically only need to test Windows GNU if you're
# specifically targetting it, and it can cause issues with some # specifically targeting it, and it can cause issues with some
# dependencies if you're not so it's disabled by self. # dependencies if you're not so it's disabled by self.
# - i686-pc-windows-gnu # - i686-pc-windows-gnu
# - x86_64-pc-windows-gnu # - x86_64-pc-windows-gnu

View file

@ -447,7 +447,7 @@ Made various optimisations, up to 65% faster in some cases.
- @rmbreak Tokei will now not add directories with `foo.bar` like syntax - @rmbreak Tokei will now not add directories with `foo.bar` like syntax
to a language. to a language.
- @Michael-F-Bryan tokei will now exit gracefully when a feature is missing - @Michael-F-Bryan tokei will now exit gracefully when a feature is missing
instead of panicing instead of panicking
**Added languages:** **Added languages:**
@ -475,7 +475,7 @@ Made various optimisations, up to 65% faster in some cases.
- @lligo : Tokei no longer panics on non-character-boundary when printing file names. - @lligo : Tokei no longer panics on non-character-boundary when printing file names.
- Fixed regression where no comment style files(_json, markdown_) weren't counted. - Fixed regression where no comment style files(_json, markdown_) weren't counted.
- Tokei can now handle files in different encodings.(_using the [encoding](https://crates.io/crates/encoding) library_) - Tokei can now handle files in different encodings.(_using the [encoding](https://crates.io/crates/encoding) library_)
- Tokei now prints errors instead of sliently skipping them. - Tokei now prints errors instead of silently skipping them.
- Tokei can now print unused extensions using `-v` option. - Tokei can now print unused extensions using `-v` option.
**Added languages:** **Added languages:**

View file

@ -264,7 +264,7 @@ OPTIONS:
-o, --output <output> Outputs Tokei in a specific format. Compile with additional features for more format -o, --output <output> Outputs Tokei in a specific format. Compile with additional features for more format
support. [possible values: cbor, json, yaml] support. [possible values: cbor, json, yaml]
-s, --sort <sort> Sort languages based on column [possible values: files, lines, blanks, code, comments] -s, --sort <sort> Sort languages based on column [possible values: files, lines, blanks, code, comments]
-t, --type <types> Filters output by language type, seperated by a comma. i.e. -t=Rust,Markdown -t, --type <types> Filters output by language type, separated by a comma. i.e. -t=Rust,Markdown
ARGS: ARGS:
<input>... The path(s) to the file or directory to be counted. <input>... The path(s) to the file or directory to be counted.

View file

@ -32,7 +32,7 @@ pub fn parse_from_slice(input: FuzzInput, check_total: bool) {
let stats = input.lang.parse_from_slice(input.data, config); let stats = input.lang.parse_from_slice(input.data, config);
if check_total { if check_total {
// verify that the parsed total lines is not more than the total occurences of \n and \r\n. // verify that the parsed total lines is not more than the total occurrences of \n and \r\n.
// if/when all of the current discrepancies are fixed, we could make this stronger by checking it is equal. // if/when all of the current discrepancies are fixed, we could make this stronger by checking it is equal.
if let Ok(s) = str::from_utf8(input.data) { if let Ok(s) = str::from_utf8(input.data) {
assert!( assert!(

View file

@ -18,7 +18,7 @@ option "operating_currency" "EUR"
; verifying starting balance ; verifying starting balance
2020-09-02 balance Assets:Cash 81.7 EUR 2020-09-02 balance Assets:Cash 81.7 EUR
; transfering money ; transferring money
2020-09-03 * "transfer of money" 2020-09-03 * "transfer of money"
Assets:Cash -17.7 EUR Assets:Cash -17.7 EUR
Expenses:Food Expenses:Food

View file

@ -9,7 +9,7 @@ int main(void) {
} }
void foo() { void foo() {
char *esc = "\"/*escaped quotes in a string and block commment*/\""; char *esc = "\"/*escaped quotes in a string and block comment*/\"";
func1(); func1();
func2(); func2();
char *next_line = char *next_line =
@ -28,7 +28,7 @@ void foo() {
char *late_start = // " char *late_start = // "
"wow\ "wow\
thats pretty neat"; that's pretty neat";
char *late_start2 = /* " */ char *late_start2 = /* " */
"*/ still just a string"; // but this is a line comment "*/ still just a string"; // but this is a line comment