summaryrefslogtreecommitdiffstats
path: root/src/function.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/function.rs')
-rw-r--r--src/function.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/function.rs b/src/function.rs
index f2eb0c6..a644185 100644
--- a/src/function.rs
+++ b/src/function.rs
@@ -126,9 +126,9 @@ impl Function {
})
}
- pub fn filtered_declarations(&self, filter: Option<&str>) -> Option<Vec<FunctionDeclaration>> {
- let filter = filter?;
- let regex = Regex::new(&format!("^({filter})$")).ok()?;
+ pub fn select(&self, matcher: Option<&str>) -> Option<Vec<FunctionDeclaration>> {
+ let matcher = matcher?;
+ let regex = Regex::new(&format!("^({matcher})$")).ok()?;
let output: Vec<FunctionDeclaration> = self
.declarations
.iter()