Skip to content

Commit 0b68d59

Browse files
committed
Clarify implementation limitations of funcs in doc comment
1 parent 3e3f827 commit 0b68d59

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3290,6 +3290,9 @@ impl Tool {
32903290
self.args.push(flag);
32913291
}
32923292

3293+
/// Checks if an argument or flag has already been specified or conflicts.
3294+
///
3295+
/// Currently only checks optimization flags.
32933296
fn is_duplicate_opt_arg(&self, flag: &OsString) -> bool {
32943297
let flag = flag.to_str().unwrap();
32953298
let mut chars = flag.chars();
@@ -3317,7 +3320,7 @@ impl Tool {
33173320
return false;
33183321
}
33193322

3320-
/// Don't push optimization arg if it conflicts with existing args
3323+
/// Don't push optimization arg if it conflicts with existing args.
33213324
fn push_opt_unless_duplicate(&mut self, flag: OsString) {
33223325
if self.is_duplicate_opt_arg(&flag) {
33233326
println!("Info: Ignoring duplicate arg {:?}", &flag);

0 commit comments

Comments
 (0)