From e1f7c9345c76f7dfe10eb4ad5a7fa3c3b3d8a9ce Mon Sep 17 00:00:00 2001 From: Seren Kwok <86184664+seren5240@users.noreply.github.com> Date: Mon, 8 Apr 2024 06:42:49 +0100 Subject: [PATCH] fix: update comments (#174) --- .grit/grit.yaml | 6 +++--- .grit/patterns/rust/cargo_use_long_dependency.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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" ```