Skip to content

Commit 1f8e139

Browse files
SAY-5SAY-5
andauthored
Fix 'occured' -> 'occurred' typos in response_handling.rb retry comments (#3022)
Two adjacent inline comments in lib/mongo/operation/shared/response_handling.rb describing the retry decision conditions used 'the error occured during ...'. Doc-only Ruby change; ruby -c stays clean. Co-authored-by: SAY-5 <saiasish.cnp@gmail.com>
1 parent 9b51d53 commit 1f8e139

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/mongo/operation/shared/response_handling.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ def add_server_diagnostics(connection)
113113
# AND the server does not support adding the RetryableWriteError label OR
114114
# the error is a network error (i.e. the driver must add the label)
115115
#
116-
# AND the error occured during a commitTransaction or abortTransaction
117-
# OR the error occured during a write outside of a transaction on a
116+
# AND the error occurred during a commitTransaction or abortTransaction
117+
# OR the error occurred during a write outside of a transaction on a
118118
# client that has retry writes enabled.
119119
#
120120
# If these conditions are met, the original error will be mutated.

0 commit comments

Comments
 (0)