@@ -309,16 +309,15 @@ public macro ParseEnum() = #externalMacro(
309309
310310/// Defines a match case using the enum's raw value without consuming bytes from the buffer.
311311///
312- /// Use this macro for `MatchableRawRepresentable ` enums where each case's raw value
312+ /// Use this macro for ``Matchable` ` enums where each case's raw value
313313/// serves as the match pattern. The matched bytes are NOT consumed from the buffer.
314314///
315- /// - Note: This declaration can only be used when the enum conforms to ``Matchable`` (or ``MatchableRawRepresentable``)
316- /// protocol.
315+ /// - Note: This declaration can only be used when the enum conforms to ``Matchable`` protocol.
317316///
318317/// Example:
319318/// ```swift
320319/// @ParseEnum
321- /// enum StatusCode: UInt8, MatchableRawRepresentable {
320+ /// enum StatusCode: UInt8, Matchable {
322321/// @match
323322/// case success = 0x00 // Matches byte 0x00 without advancing the pointer
324323///
@@ -391,17 +390,16 @@ public macro match(bytes: [UInt8]) = #externalMacro(
391390
392391/// Matches and consumes bytes from the buffer using the enum's raw value.
393392///
394- /// Use this macro for `MatchableRawRepresentable ` enums where each case's raw value
393+ /// Use this macro for ``Matchable` ` enums where each case's raw value
395394/// serves as the match pattern. The matched bytes ARE consumed from the buffer,
396395/// making this suitable for cases with associated values that need to parse subsequent data.
397396///
398- /// - Note: This declaration can only be used when the enum conforms to ``Matchable`` (or ``MatchableRawRepresentable``)
399- /// protocol.
397+ /// - Note: This declaration can only be used when the enum conforms to ``Matchable`` protocol.
400398///
401399/// Example:
402400/// ```swift
403401/// @ParseEnum
404- /// enum Command: UInt8, MatchableRawRepresentable {
402+ /// enum Command: UInt8, Matchable {
405403/// @matchAndTake
406404/// @parse(endianness: .big)
407405/// case setValue(UInt16) = 0x01 // Matches and consumes 0x01, then parses UInt16
0 commit comments