diff --git a/.grit/grit.yaml b/.grit/grit.yaml index 7ea691f7..cc737adc 100644 --- a/.grit/grit.yaml +++ b/.grit/grit.yaml @@ -12,14 +12,14 @@ patterns: } samples: - input: | - // @filename: .grit/patterns/kebab-case.md + # This is a markdown file output: | - // @filename: .grit/patterns/kebab-case.md + # This is a markdown file - input: | - // @filename: .grit/patterns/snake_case.md + # This is a markdown file diff --git a/.grit/patterns/rust/cargo_use_long_dependency.md b/.grit/patterns/rust/cargo_use_long_dependency.md index 5da71655..8285c76a 100644 --- a/.grit/patterns/rust/cargo_use_long_dependency.md +++ b/.grit/patterns/rust/cargo_use_long_dependency.md @@ -20,7 +20,7 @@ $deps` where { Old syntax, with a mix of both: ```toml -// @filename: Cargo.toml +# @filename: Cargo.toml [package] name = "my-package" @@ -34,7 +34,7 @@ other_pkg = "0.1.3" New syntax, with all dependencies using the same format: ```toml -// @filename: Cargo.toml +# @filename: Cargo.toml [package] name = "my-package" @@ -50,7 +50,7 @@ other_pkg = { version = "0.1.3" } This rule only applies to Cargo.toml files, so it's safe to ignore other files. ```toml -// @filename: other-file.toml +# @filename: other-file.toml [dependencies] rand = "0.6" ```