samber / mo

🦄 Monads and popular FP abstractions, powered by Go 1.18+ Generics (Option, Result, Either...)
https://pkg.go.dev/github.com/samber/mo
MIT License
2.47k stars 80 forks source link

swap documentation of functions IsAbsent and IsPresent #27

Closed jcbritobr closed 10 months ago

jcbritobr commented 1 year ago

struct Option functions IsAbsent and IsPresent has swaped documentation

IsAbsent says: IsAbsent returns true when value is present. - must returns false when value is present IsPresent says: IsPresent returns true when value is absent - must return true when value is present

version - mo.1.8.0

MatthiasKunnen commented 10 months ago

Fixed in #22 but not yet released.

samber commented 10 months ago

fixed in 1.9.0