Fix typo in tostring.md

specialiation -> specialization
This commit is contained in:
Ikko Eltociear Ashimine
2023-12-09 21:00:24 +01:00
committed by Martin Hořeňovský
parent d1d7414eb9
commit 21d2da23bc
+1 -1
View File
@@ -75,7 +75,7 @@ CATCH_TRANSLATE_EXCEPTION( MyType const& ex ) {
Enums that already have a `<<` overload for `std::ostream` will convert to strings as expected.
If you only need to convert enums to strings for test reporting purposes you can provide a `StringMaker` specialisations as any other type.
However, as a convenience, Catch provides the `REGISTER_ENUM` helper macro that will generate the `StringMaker` specialiation for you with minimal code.
However, as a convenience, Catch provides the `REGISTER_ENUM` helper macro that will generate the `StringMaker` specialization for you with minimal code.
Simply provide it the (qualified) enum name, followed by all the enum values, and you're done!
E.g.