Skip to content

Commit fa8d7b3

Browse files
authored
fix: typo in init_command doc (#17)
* Fix typo in init_command doc * Update lint_config.rs
1 parent e8929e0 commit fa8d7b3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lint_config.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ pub struct LintConfig {
8686
/// # Examples
8787
/// - Calling a Python script:
8888
/// ```toml
89-
/// command = ['python3', 'my_linter.py', -- '@{{PATHSFILE}}']
89+
/// command = ['python3', 'my_linter.py', '--', '@{{PATHSFILE}}']
9090
/// ```
9191
pub command: Vec<String>,
9292

@@ -105,7 +105,8 @@ pub struct LintConfig {
105105
/// # Examples
106106
/// - Calling a Python script:
107107
/// ```toml
108-
/// command = ['python3', 'my_linter_init.py', '--dry-run={{DRYRUN}}']
108+
/// init_command = ['python3', 'my_linter_init.py', '--dry-run={{DRYRUN}}']
109+
/// ```
109110
pub init_command: Option<Vec<String>>,
110111

111112
/// If true, this linter will be considered a formatter, and will invoked by

0 commit comments

Comments
 (0)