@@ -13,11 +13,11 @@ macro_rules! assert_canceled {
1313 } ;
1414}
1515
16- /// Add test where a call to `sum` is cancelled by a simultaneous
16+ /// Add test where a call to `sum` is canceled by a simultaneous
1717/// write. Check that we recompute the result in next revision, even
1818/// though none of the inputs have changed.
1919#[ test]
20- fn in_par_get_set_cancellation_immediate ( ) {
20+ fn in_par_get_set_cancelation_immediate ( ) {
2121 let mut db = ParDatabaseImpl :: default ( ) ;
2222
2323 db. set_input ( 'a' , 100 ) ;
@@ -28,11 +28,11 @@ fn in_par_get_set_cancellation_immediate() {
2828 let thread1 = std:: thread:: spawn ( {
2929 let db = db. snapshot ( ) ;
3030 move || {
31- // This will not return until it sees cancellation is
31+ // This will not return until it sees cancelation is
3232 // signaled.
3333 db. knobs ( ) . sum_signal_on_entry . with_value ( 1 , || {
3434 db. knobs ( )
35- . sum_wait_for_cancellation
35+ . sum_wait_for_cancelation
3636 . with_value ( CancelationFlag :: Panic , || db. sum ( "abc" ) )
3737 } )
3838 }
@@ -41,7 +41,7 @@ fn in_par_get_set_cancellation_immediate() {
4141 // Wait until we have entered `sum` in the other thread.
4242 db. wait_for ( 1 ) ;
4343
44- // Try to set the input. This will signal cancellation .
44+ // Try to set the input. This will signal cancelation .
4545 db. set_input ( 'd' , 1000 ) ;
4646
4747 // This should re-compute the value (even though no input has changed).
@@ -55,10 +55,10 @@ fn in_par_get_set_cancellation_immediate() {
5555 assert_eq ! ( thread2. join( ) . unwrap( ) , 111 ) ;
5656}
5757
58- /// Here, we check that `sum`'s cancellation is propagated
58+ /// Here, we check that `sum`'s cancelation is propagated
5959/// to `sum2` properly.
6060#[ test]
61- fn in_par_get_set_cancellation_transitive ( ) {
61+ fn in_par_get_set_cancelation_transitive ( ) {
6262 let mut db = ParDatabaseImpl :: default ( ) ;
6363
6464 db. set_input ( 'a' , 100 ) ;
@@ -69,11 +69,11 @@ fn in_par_get_set_cancellation_transitive() {
6969 let thread1 = std:: thread:: spawn ( {
7070 let db = db. snapshot ( ) ;
7171 move || {
72- // This will not return until it sees cancellation is
72+ // This will not return until it sees cancelation is
7373 // signaled.
7474 db. knobs ( ) . sum_signal_on_entry . with_value ( 1 , || {
7575 db. knobs ( )
76- . sum_wait_for_cancellation
76+ . sum_wait_for_cancelation
7777 . with_value ( CancelationFlag :: Panic , || db. sum2 ( "abc" ) )
7878 } )
7979 }
@@ -82,7 +82,7 @@ fn in_par_get_set_cancellation_transitive() {
8282 // Wait until we have entered `sum` in the other thread.
8383 db. wait_for ( 1 ) ;
8484
85- // Try to set the input. This will signal cancellation .
85+ // Try to set the input. This will signal cancelation .
8686 db. set_input ( 'd' , 1000 ) ;
8787
8888 // This should re-compute the value (even though no input has changed).
@@ -98,18 +98,18 @@ fn in_par_get_set_cancellation_transitive() {
9898
9999/// https://github.com/salsa-rs/salsa/issues/66
100100#[ test]
101- fn no_back_dating_in_cancellation ( ) {
101+ fn no_back_dating_in_cancelation ( ) {
102102 let mut db = ParDatabaseImpl :: default ( ) ;
103103
104104 db. set_input ( 'a' , 1 ) ;
105105 let thread1 = std:: thread:: spawn ( {
106106 let db = db. snapshot ( ) ;
107107 move || {
108108 // Here we compute a long-chain of queries,
109- // but the last one gets cancelled .
109+ // but the last one gets canceled .
110110 db. knobs ( ) . sum_signal_on_entry . with_value ( 1 , || {
111111 db. knobs ( )
112- . sum_wait_for_cancellation
112+ . sum_wait_for_cancelation
113113 . with_value ( CancelationFlag :: Panic , || db. sum3 ( "a" ) )
114114 } )
115115 }
@@ -120,7 +120,7 @@ fn no_back_dating_in_cancellation() {
120120 // Set unrelated input to bump revision
121121 db. set_input ( 'b' , 2 ) ;
122122
123- // Here we should recompuet the whole chain again, clearing the cancellation
123+ // Here we should recompuet the whole chain again, clearing the cancelation
124124 // state. If we get `usize::max()` here, it is a bug!
125125 assert_eq ! ( db. sum3( "a" ) , 1 ) ;
126126
0 commit comments