Skip to content

Fix typo in generator exception message ("Coud" -> "Could")#3181

Merged
horenmar merged 1 commit into
catchorg:develfrom
dvirarad:fix-generator-exception-message-typo
Jul 24, 2026
Merged

Fix typo in generator exception message ("Coud" -> "Could")#3181
horenmar merged 1 commit into
catchorg:develfrom
dvirarad:fix-generator-exception-message-typo

Conversation

@dvirarad

Copy link
Copy Markdown
Contributor

The exception message thrown by throw_generator_exception() when a generator cannot jump to the Nth element had "Coud" misspelled instead of "Could". The same message string appears in three places, all fixed here:

  • src/catch2/generators/catch_generators.hpp
  • src/catch2/generators/catch_generators_adapters.hpp
  • src/catch2/interfaces/catch_interfaces_generatortracker.cpp

This is a user-facing string (surfaced when a generator is asked to skip past its available elements). No functional change.

The "Could not jump to Nth element: not enough elements" message thrown
by throw_generator_exception() had "Coud" misspelled in all three places
it appears (catch_generators.hpp, catch_generators_adapters.hpp, and
catch_interfaces_generatortracker.cpp).
@horenmar

Copy link
Copy Markdown
Member

Thanks

@horenmar
horenmar merged commit 1a9625a into catchorg:devel Jul 24, 2026
85 of 86 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants