History

Fix typos

Kian-Meng Ang committed 4 years ago

Commit e9fcb701 parent aa639d858 files · +73 −73Browse files

Showing the changes to git-features/src/parallel (2 of 58 files). Show all

Unified · Split

2 files
  1. git-features/src/parallel/in_parallel.rs +2 −2
  2. git-features/src/parallel/serial.rs +1 −1
git-features/src/parallel/in_parallel.rs+2−2
@@ -16,7 +16,7 @@ pub fn join<O1: Send, O2: Send>(left: impl FnOnce() -> O1 + Send, right: impl Fn · 15 unmodified lines
1616 /// That way it's possible to handle threads without needing the 'static lifetime for data they interact with.
1717 ///
1818 /// Note that the threads should not rely on actual parallelism as threading might be turned off entirely, hence should not
19−/// connect each other with channels as deadlock would occour in single-threaded mode.
19+/// connect each other with channels as deadlock would occur in single-threaded mode.
2020 pub fn threads<'env, F, R>(f: F) -> std::thread::Result<R>
2121 where
2222 F: FnOnce(&crossbeam_utils::thread::Scope<'env>) -> R,
@@ -85,7 +85,7 @@ where · 62 unmodified lines
8585 }
8686
8787 /// An experiment to have fine-grained per-item parallelization with built-in aggregation via thread state.
88−/// This is only good for operations where near-random access isn't detremental, so it's not usually great
88+/// This is only good for operations where near-random access isn't detrimental, so it's not usually great
8989 /// for file-io as it won't make use of sorted inputs well.
9090 /// Note that `periodic` is not guaranteed to be called in case other threads come up first and finish too fast.
9191 // TODO: better docs
git-features/src/parallel/serial.rs+1−1
@@ -57,7 +57,7 @@ mod not_parallel { · 56 unmodified lines
5757 }
5858
5959 /// An experiment to have fine-grained per-item parallelization with built-in aggregation via thread state.
60− /// This is only good for operations where near-random access isn't detremental, so it's not usually great
60+ /// This is only good for operations where near-random access isn't detrimental, so it's not usually great
6161 /// for file-io as it won't make use of sorted inputs well.
6262 // TODO: better docs
6363 pub fn in_parallel_with_slice<I, S, E>(

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t