Skip to content

Commit

Permalink
FIx a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Sep 5, 2018
1 parent 2fd1c96 commit 97bd967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/webidl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ fn parse(webidl_source: &str, allowed_types: Option<&[&str]>)
if let Some(allowed_types) = allowed_types {
let allowed = allowed_types.iter().cloned().collect::<HashSet<_>>();
let filter = |name: &&str| {
set.contains(&camel_case_ident(name)[..])
allowed.contains(&camel_case_ident(name)[..])
};
retain(&mut first_pass_record.enums, &filter);
retain(&mut first_pass_record.dictionaries, &filter);
Expand Down

0 comments on commit 97bd967

Please sign in to comment.