Skip to content

Commit 0f89ee8

Browse files
authored
Apply suggestion from @Morriar
1 parent 760d882 commit 0f89ee8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/type_toolkit/ext/nil_assertions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module TypeToolkit
3131
#
3232
# Note: `rescue Exception` can still catch it, but that's intentionally harder to write accidentally.
3333
#
34-
# WARNING: If you copy this class into another codebase, do NOT change the superclass to `StandardError`.
34+
# WARNING: do NOT change the superclass to `StandardError`.
3535
# Doing so would allow common `rescue StandardError` or bare `rescue` clauses to silently swallow
3636
# nil errors, masking bugs that should be immediately visible.
3737
class UnexpectedNilError < Exception # rubocop:disable Lint/InheritException

0 commit comments

Comments
 (0)