Repository navigation
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.