onsi / ginkgo

A Modern Testing Framework for Go
http://onsi.github.io/ginkgo/
MIT License
8.29k stars 654 forks source link

bugfix(docs): use Unsetenv instead of Clearenv #1337

Closed sxllwx closed 8 months ago

sxllwx commented 8 months ago

The documentation incorrectly uses os.Clearenv to clear specific environment variables. In fact, we should use os.Unsetenv.

The APIs related to these two functions are as follows:

https://pkg.go.dev/os#Clearenv https://pkg.go.dev/os#Unsetenv

onsi commented 8 months ago

thanks!