From 1a9625a6e78f455b63a4bac080fb284c9ec57731 Mon Sep 17 00:00:00 2001 From: dvir arad Date: Fri, 24 Jul 2026 15:33:21 +0300 Subject: [PATCH] Fix typo in generator exception message ("Coud" -> "Could") 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). --- src/catch2/generators/catch_generators.hpp | 2 +- src/catch2/generators/catch_generators_adapters.hpp | 2 +- src/catch2/interfaces/catch_interfaces_generatortracker.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/catch2/generators/catch_generators.hpp b/src/catch2/generators/catch_generators.hpp index 63bcbf2f..a9208101 100644 --- a/src/catch2/generators/catch_generators.hpp +++ b/src/catch2/generators/catch_generators.hpp @@ -95,7 +95,7 @@ namespace Generators { void skipToNthElementImpl( std::size_t n ) override { if ( n >= m_values.size() ) { Detail::throw_generator_exception( - "Coud not jump to Nth element: not enough elements" ); + "Could not jump to Nth element: not enough elements" ); } m_idx = n; } diff --git a/src/catch2/generators/catch_generators_adapters.hpp b/src/catch2/generators/catch_generators_adapters.hpp index 7e21671a..6449d0a6 100644 --- a/src/catch2/generators/catch_generators_adapters.hpp +++ b/src/catch2/generators/catch_generators_adapters.hpp @@ -27,7 +27,7 @@ namespace Generators { void skipToNthElementImpl( std::size_t n ) override { if ( n >= m_target ) { Detail::throw_generator_exception( - "Coud not jump to Nth element: not enough elements" ); + "Could not jump to Nth element: not enough elements" ); } m_generator.skipToNthElement( n ); diff --git a/src/catch2/interfaces/catch_interfaces_generatortracker.cpp b/src/catch2/interfaces/catch_interfaces_generatortracker.cpp index 8442be4e..c924290a 100644 --- a/src/catch2/interfaces/catch_interfaces_generatortracker.cpp +++ b/src/catch2/interfaces/catch_interfaces_generatortracker.cpp @@ -28,7 +28,7 @@ namespace Catch { bool isValid = next(); if ( !isValid ) { Detail::throw_generator_exception( - "Coud not jump to Nth element: not enough elements" ); + "Could not jump to Nth element: not enough elements" ); } } }