Skip to content

Commit

Permalink
Update errors.go
Browse files Browse the repository at this point in the history
Co-authored-by: David Sharnoff <[email protected]>
  • Loading branch information
dncohen and muir committed Jul 19, 2024
1 parent 51fc09e commit a303b7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ func ExpungeOnce(exception *error, format string, a ...interface{}) {

// concat is like append(), without side effects. So the slice passed in will not be changed (even if it has high capacity).
func concat(head []any, tail ...any) []any {
result := make([]any, 0, len(head) + len(tail))
result = append(result, head...)
result := make([]any, len(head), len(head) + len(tail))
copy(result, head)
result = append(result, tail...)
return result
}

0 comments on commit a303b7f

Please sign in to comment.