diff --git a/examples/word-count/src/lib.rs b/examples/word-count/src/lib.rs index e779acd6..49a35e67 100644 --- a/examples/word-count/src/lib.rs +++ b/examples/word-count/src/lib.rs @@ -55,7 +55,7 @@ fn wc_parallel(lines: &[&str], search: &str) -> i32 { fn init_mod(py: Python, m: &PyModule) -> PyResult<()> { #[pyfn(m, "search")] - fn search_py(py: Python, path: String, search: String) -> PyResult { + fn search(py: Python, path: String, search: String) -> PyResult { let mut file = File::open(path).map_err(|e| e.to_pyerr(py))?; let mut contents = String::new(); file.read_to_string(&mut contents).map_err(|e| e.to_pyerr(py))?;