docs: multierr.Errors returns nil, not empty (#33)

Previously the docs incorrectly stated that `multierr.Errors(err)`
would return an empty slice rather than a nil slice, which would imply
that `multierr.Errors(nil) == []error{}`, which isn't true.

This updates the docs to reflect reality: `multierr.Errors(nil) == nil`.
1 file changed
tree: 874320f7be2922990d2d53a5dcac927ca68ca605
  1. .codecov.yml
  2. .gitignore
  3. .travis.yml
  4. benchmarks_test.go
  6. error.go
  7. error_test.go
  8. example_test.go
  9. glide.yaml
  10. go.mod
  11. go.sum
  12. go113.go
  13. go113_test.go
  14. LICENSE.txt
  15. Makefile
  17. tools.go

multierr GoDoc Build Status Coverage Status

multierr allows combining one or more Go errors together.


go get -u


Stable: No breaking changes will be made before 2.0.

Released under the MIT License.