go-hep / hep

hep is the mono repository holding all of go-hep.org/x/hep packages and tools
https://go-hep.org
BSD 3-Clause "New" or "Revised" License
230 stars 35 forks source link

sliceop: use errors.New for constant errors #940

Closed dolmen closed 2 years ago

dolmen commented 2 years ago

Use errors.New instead of fmt.Errorf when the message is a constant string.

dolmen commented 2 years ago

2022-04-28 The golang.org/x/exp/slices is, like its import path implies, still experimental.