Skip to content

Commit

Permalink
fix misspelling
Browse files Browse the repository at this point in the history
  • Loading branch information
fereidani committed Jul 14, 2022
1 parent c76ac8f commit f9c529b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ impl<T> Receiver<T> {
internal.push_recv(sig.as_signal());
drop(internal);
if !sig.wait() {
// receiving data was not successull so calling drop on uninited is undefined behavior
// receiving data was not successful so calling drop on uninited is undefined behavior
if std::mem::needs_drop::<T>() {
std::mem::forget(ret);
}
Expand Down Expand Up @@ -325,7 +325,7 @@ impl<T> AsyncReceiver<T> {
let sig = sig.deref();
let sync_wait = sig.wait_sync();
if sync_wait >= 1 && (sync_wait == 2 || sig.await != 0) {
// receiving data was not successull so calling drop on uninited is undefined behavior
// receiving data was not successful so calling drop on uninited is undefined behavior
if std::mem::needs_drop::<T>() {
std::mem::forget(ret);
}
Expand Down

0 comments on commit f9c529b

Please sign in to comment.