Fix Broken Docs References (#5436)

This commit is contained in:
Arr00
2025-01-24 04:12:16 -05:00
committed by GitHub
parent a55fabc405
commit 6dc9242937
21 changed files with 49 additions and 59 deletions

View File

@ -95,7 +95,7 @@ library ShortStrings {
}
/**
* @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
* @dev Decode a string that was encoded to `ShortString` or written to storage using {toShortStringWithFallback}.
*/
function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) {
if (ShortString.unwrap(value) != FALLBACK_SENTINEL) {
@ -107,7 +107,7 @@ library ShortStrings {
/**
* @dev Return the length of a string that was encoded to `ShortString` or written to storage using
* {setWithFallback}.
* {toShortStringWithFallback}.
*
* WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of
* actual characters as the UTF-8 encoding of a single character can span over multiple bytes.