Skip to content

Commit 74c0cd1

Browse files
committed
docs: fix out-of-date comments.
1 parent ecf8803 commit 74c0cd1

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

cli/src/commands/scan.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,6 @@ pub fn exec_scan(args: &ArgMatches, config: &Config) -> anyhow::Result<()> {
245245

246246
rules
247247
} else {
248-
// With `take()` we pass the external variables to `compile_rules`,
249-
// while leaving a `None` in `external_vars`. This way external
250-
// variables are not set again in the scanner.
251248
compile_rules(rules_path, args, config)?
252249
};
253250

cli/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ impl Default for PatternsFormatConfig {
198198

199199
/// Load a config file from a given path. Path must contain a valid TOML file
200200
/// or this function will propagate the error. For structure of the config file
201-
/// see "YARA-X Config Guide.md".
201+
/// see https://virustotal.github.io/yara-x/docs/cli/config-file/.
202202
pub fn load_config_from_file(
203203
config_file: &Path,
204204
) -> Result<Config, Box<figment::Error>> {

0 commit comments

Comments
 (0)