Skip to content

Commit

Permalink
fix incorrect docstring for locked_for_each
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoldbaum committed Jan 6, 2025
1 parent a27288a commit f57bab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ impl<'py> PyListMethods<'py> for Bound<'py, PyList> {
BoundListIterator::new(self.clone())
}

/// Returns an iterator that holds a critical section on the list.
/// Iterates over a list while holding a critical section, calling a closure on each item
fn locked_for_each<F>(&self, closure: F) -> PyResult<()>
where
F: Fn(Bound<'py, PyAny>) -> PyResult<()>,
Expand Down

0 comments on commit f57bab1

Please sign in to comment.