Skip to content

v1.3.1

Latest

Choose a tag to compare

@emar-kar emar-kar released this 13 Mar 17:07
6b77d4f

Fixes & Improvements

Add — safer nested BufferedError flattening
Replaced the two-call nested.Err() + nested.Unwrap() pattern with a single
nested.Unwrap() snapshot. This removes a redundant lock round-trip and
eliminates the risk of holding two mutexes simultaneously when flattening
nested buffers.

Error — clarified pooled builder pre-sizing intent
Added a comment explaining why the Cap() == 0 guard is intentional: reused
builders from the pool retain their capacity, so the err.Error() scan is
skipped on subsequent calls and the builder grows naturally only if needed.
Format — corrected doc comment
Fixed a contradictory doc comment where %v was described as both single-line
and multiline.