Skip to content

Commit

Permalink
Merge pull request #1256 from Daggy1234/master
Browse files Browse the repository at this point in the history
Docs: Fixed example word_count
  • Loading branch information
kngwyu authored Oct 21, 2020
2 parents 33a602d + 042337b commit 864eeca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/word-count/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fn count_line(line: &str, needle: &str) -> usize {

#[pymodule]
fn word_count(_py: Python<'_>, m: &PyModule) -> PyResult<()> {
m.add_wrapped(wrap_pyfunction!(search))?;
m.add_function(wrap_pyfunction!(search, m)?)?;
m.add_function(wrap_pyfunction!(search_sequential, m)?)?;
m.add_function(wrap_pyfunction!(search_sequential_allow_threads, m)?)?;

Expand Down

0 comments on commit 864eeca

Please sign in to comment.