This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.
/// MAC verification failed - The tag doesn't verify for the given ciphertext and secret keypubconstAuthenticationError = error{AuthenticationFailed};
/// The requested output length is too long for the chosen algorithmpubconstOutputTooLongError = error{OutputTooLong};
/// Finite field operation returned the identity elementpubconstIdentityElementError = error{IdentityElement};
/// Encoded input cannot be decodedpubconstEncodingError = error{InvalidEncoding};
/// The signature doesn't verify for the given message and public keypubconstSignatureVerificationError = error{SignatureVerificationFailed};
/// Both a public and secret key have been provided, but they are incompatiblepubconstKeyMismatchError = error{KeyMismatch};
/// Encoded input is not in canonical formpubconstNonCanonicalError = error{NonCanonical};
/// Square root has no solutionspubconstNotSquareError = error{NotSquare};
/// Verification string doesn't match the provided password and parameterspubconstPasswordVerificationError = error{PasswordVerificationFailed};
/// Parameters would be insecure to usepubconstWeakParametersError = error{WeakParameters};
/// Public key would be insecure to usepubconstWeakPublicKeyError = error{WeakPublicKey};
/// Point is not in the prime order grouppubconstUnexpectedSubgroupError = error{UnexpectedSubgroup};
/// Context string is too longpubconstContextTooLongError = error{ContextTooLong};
/// Any error related to cryptography operationspubconstError = AuthenticationError || OutputTooLongError || IdentityElementError || EncodingError || SignatureVerificationError || KeyMismatchError || NonCanonicalError || NotSquareError || PasswordVerificationError || WeakParametersError || WeakPublicKeyError || UnexpectedSubgroupError || ContextTooLongError;