Skip to content

Commit

Permalink
remove accidental docstring update
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC authored Jul 23, 2024
1 parent e375be8 commit 19df12f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/InlineStrings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ for sz in (2, 4, 8, 16, 32, 64, 128, 256)
$($nm)(bytes::AbstractVector{UInt8}, pos, len)
$($nm)(ptr::Ptr{UInt8}, [len])
Custom C compatible fixed-size string with a fixed size of $($sz) bytes.
1 byte is used to store the capacity minus the length of the string. If an
inline string is shorter than $($(sz-1)) bytes, the entire
Custom fixed-size string with a fixed size of $($sz) bytes.
1 byte is used to store the length of the string. If an
inline string is shorter than $($(max(1, sz - 1))) bytes, the entire
string still occupies the full $($sz) bytes since they are,
by definition, fixed size. Otherwise, they can be treated
just like normal `String` values. Note that `sizeof(x)` will
Expand Down

0 comments on commit 19df12f

Please sign in to comment.