Skip to content

Commit 630f640

Browse files
committed
Fix function name
1 parent cd660de commit 630f640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ impl Threadpool {
116116
}
117117

118118
/// Get the specified number of threads for this pool
119-
pub fn max_threads(&self) -> usize {
119+
pub fn num_threads(&self) -> usize {
120120
self.data.num_threads.load(Ordering::Relaxed)
121121
}
122122

0 commit comments

Comments
 (0)