diff --git a/.github/release.py b/.github/release.py index 611f2b00..4e7d7fae 100755 --- a/.github/release.py +++ b/.github/release.py @@ -69,7 +69,7 @@ # Update version in README.md README_REPLACEMENTS = ( ("rev: v{old}", "rev: v{new}"), - ("StyLua:{old}", "StyLua:{new}"), + ("stylua:{old}", "stylua:{new}"), ("stylua@{old}", "stylua@{new}"), ) diff --git a/README.md b/README.md index 8f1111bd..d0e11551 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ StyLua is available on the [Docker Hub](https://hub.docker.com/r/johnnymorganz/s If you are using Docker, the easiest way to install StyLua is: ```dockerfile -COPY --from=JohnnyMorganz/StyLua:2.6.0 /stylua /usr/bin/stylua +COPY --from=johnnymorganz/stylua:2.6.0 /stylua /usr/bin/stylua ``` ### Homebrew @@ -198,7 +198,7 @@ Note that this may produce false positives and negatives - we recommend manual v ### Ignoring parts of a file To skip formatting a particular part of a file, you can add `-- stylua: ignore` before it. -This is useful if there is a particular style you want to preseve for readability, e.g.: +This is useful if there is a particular style you want to preserve for readability, e.g.: ```lua -- stylua: ignore diff --git a/src/cli/main.rs b/src/cli/main.rs index 64300535..cc360376 100644 --- a/src/cli/main.rs +++ b/src/cli/main.rs @@ -119,7 +119,7 @@ fn create_diff( vec.push(b'\n'); vec }) - // Covert to anyhow::Error + // Convert to anyhow::Error .map_err(|err| err.into()) }) .transpose() diff --git a/src/formatters/functions.rs b/src/formatters/functions.rs index ab3244e1..ab0e47b3 100644 --- a/src/formatters/functions.rs +++ b/src/formatters/functions.rs @@ -322,7 +322,7 @@ fn function_args_multiline_heuristic( expression => { current_state = current_state.record_standard_arg(); - // TODO: BACKWARDS COMPATABILITY - THIS CODEPATH WAS ONLY FOLLOWED THROUGH WHEN + // TODO: BACKWARDS COMPATIBILITY - THIS CODEPATH WAS ONLY FOLLOWED THROUGH WHEN // IT WASN'T PARENTHESES / UNOP, AND THE PATHS MERGED WHEN REMOVING EXPRESSION::VALUE // WE SHOULD SEE IF THIS IS ACTUALLY NECESSARY if !matches!( diff --git a/src/shape.rs b/src/shape.rs index 7ac6164c..9b9f7dee 100644 --- a/src/shape.rs +++ b/src/shape.rs @@ -189,7 +189,7 @@ impl Shape { } /// Whether simple heuristics should be used when calculating formatting shape - /// This is to reduce the expontential blowup of discarded test formatting + /// This is to reduce the exponential blowup of discarded test formatting #[must_use] pub fn using_simple_heuristics(&self) -> bool { self.simple_heuristics