@@ -70,22 +70,22 @@ impl<T> crate::Inner<T> {
70
70
pub ( crate ) fn remove (
71
71
& self ,
72
72
mut listener : Pin < & mut Option < Listener < T > > > ,
73
- propogate : bool ,
73
+ propagate : bool ,
74
74
) -> Option < State < T > > {
75
75
let state = match listener. as_mut ( ) . take ( ) {
76
76
Some ( Listener :: HasNode ( key) ) => {
77
77
match self . try_lock ( ) {
78
78
Some ( mut list) => {
79
79
// Fast path removal.
80
- list. remove ( key, propogate )
80
+ list. remove ( key, propagate )
81
81
}
82
82
83
83
None => {
84
84
// Slow path removal.
85
85
// This is why intrusive lists don't work on no_std.
86
86
let node = Node :: RemoveListener {
87
87
listener : key,
88
- propagate : propogate ,
88
+ propagate,
89
89
} ;
90
90
91
91
self . list . queue . push ( node) ;
@@ -500,7 +500,7 @@ impl<T> ListenerSlab<T> {
500
500
}
501
501
502
502
/// Removes an entry from the list and returns its state.
503
- pub ( crate ) fn remove ( & mut self , key : NonZeroUsize , propogate : bool ) -> Option < State < T > > {
503
+ pub ( crate ) fn remove ( & mut self , key : NonZeroUsize , propagate : bool ) -> Option < State < T > > {
504
504
let entry = & self . listeners [ key. get ( ) ] ;
505
505
let prev = entry. prev ( ) . get ( ) ;
506
506
let next = entry. next ( ) . get ( ) ;
@@ -538,8 +538,8 @@ impl<T> ListenerSlab<T> {
538
538
if state. is_notified ( ) {
539
539
self . notified = self . notified . saturating_sub ( 1 ) ;
540
540
541
- if propogate {
542
- // Propogate the notification to the next entry.
541
+ if propagate {
542
+ // Propagate the notification to the next entry.
543
543
let state = mem:: replace ( & mut state, State :: NotifiedTaken ) ;
544
544
if let State :: Notified { tag, additional } = state {
545
545
let tags = {
@@ -1247,7 +1247,7 @@ mod tests {
1247
1247
}
1248
1248
) ;
1249
1249
1250
- // Remove and propogate the second listener.
1250
+ // Remove and propagate the second listener.
1251
1251
assert_eq ! ( listeners. remove( key2, true ) , Some ( State :: NotifiedTaken ) ) ;
1252
1252
1253
1253
// The third listener should be notified.
@@ -1339,7 +1339,7 @@ mod tests {
1339
1339
inner. notify ( GenericNotify :: new ( 1 , false , || ( ) ) ) ;
1340
1340
assert ! ( woken. load( Ordering :: SeqCst ) ) ;
1341
1341
1342
- // Remove the second listener and propogate the notification.
1342
+ // Remove the second listener and propagate the notification.
1343
1343
assert_eq ! (
1344
1344
inner. remove( Pin :: new( & mut listener2) , true ) ,
1345
1345
Some ( State :: NotifiedTaken )
0 commit comments