Rename @return! to @return?

This commit is contained in:
Christoffer Lerno
2025-03-12 21:40:30 +01:00
parent c9dbd86d82
commit b8ae2b06d6
18 changed files with 43 additions and 43 deletions

View File

@@ -84,7 +84,7 @@ fn usz encode_len(usz n, char padding)
@require padding < 0xFF : "Invalid padding character"
@require dst.len >= decode_len(src.len, padding) : "Destination buffer too small"
@return "The resulting dst buffer"
@return! encoding::INVALID_PADDING, encoding::INVALID_CHARACTER
@return? encoding::INVALID_PADDING, encoding::INVALID_CHARACTER
*>
fn char[]? decode_buffer(char[] src, char[] dst, char padding = DEFAULT_PAD, Base32Alphabet* alphabet = &STANDARD)
{

View File

@@ -79,7 +79,7 @@ fn usz encode_len(usz n, char padding)
@param padding : "The padding character or 0 if none"
@require padding < 0xFF : "Invalid padding character"
@return "The size of the input once decoded."
@return! encoding::INVALID_PADDING
@return? encoding::INVALID_PADDING
*>
fn usz? decode_len(usz n, char padding)
{
@@ -163,7 +163,7 @@ fn String encode_buffer(char[] src, char[] dst, char padding = DEFAULT_PAD, Base
@require (decode_len(src.len, padding) ?? 0) <= dst.len : "Destination buffer too small"
@require padding < 0xFF : "Invalid padding character"
@return "The decoded data."
@return! encoding::INVALID_CHARACTER, encoding::INVALID_PADDING
@return? encoding::INVALID_CHARACTER, encoding::INVALID_PADDING
*>
fn char[]? decode_buffer(char[] src, char[] dst, char padding = DEFAULT_PAD, Base64Alphabet* alphabet = &STANDARD)
{

View File

@@ -72,7 +72,7 @@ macro usz decode_len(usz n) => n / 2;
@param dst : "The decoded input."
@require src.len % 2 == 0 : "src is not of even length"
@require dst.len >= decode_len(src.len) : "Destination array is not large enough"
@return! encoding::INVALID_CHARACTER
@return? encoding::INVALID_CHARACTER
*>
fn usz? decode_bytes(char[] src, char[] dst)
{