Skip to content

Commit 79da27f

Browse files
authored
Merge pull request #94 from matbur/fix/ToPointer-playground-link
Update playground link for ToPointer
2 parents 7de8aa6 + b8e78ec commit 79da27f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ Methods:
176176
- `.MustGet()` [doc](https://pkg.go.dev/github.com/samber/mo#Option.MustGet) - [play](https://go.dev/play/p/RVBckjdi5WR)
177177
- `.OrElse()` [doc](https://pkg.go.dev/github.com/samber/mo#Option.OrElse) - [play](https://go.dev/play/p/TrGByFWCzXS)
178178
- `.OrEmpty()` [doc](https://pkg.go.dev/github.com/samber/mo#Option.OrEmpty) - [play](https://go.dev/play/p/SpSUJcE-tQm)
179-
- `.ToPointer()` [doc](https://pkg.go.dev/github.com/samber/mo#Option.ToPointer) - [play](https://go.dev/play/p/N43w92SM-Bs)
179+
- `.ToPointer()` [doc](https://pkg.go.dev/github.com/samber/mo#Option.ToPointer) - [play](https://go.dev/play/p/KJc2Pv3KNPW)
180180
- `.ForEach()` [doc](https://pkg.go.dev/github.com/samber/mo#Option.ForEach)
181181
- `.Match()` [doc](https://pkg.go.dev/github.com/samber/mo#Option.Match) - [play](https://go.dev/play/p/1V6st3LDJsM)
182182
- `.Map()` [doc](https://pkg.go.dev/github.com/samber/mo#Option.Map) - [play](https://go.dev/play/p/mvfP3pcP_eJ)

option.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func (o Option[T]) MapValue(mapper func(value T) T) Option[T] {
199199
}
200200

201201
// ToPointer returns value if present or a nil pointer.
202-
// Play: https://go.dev/play/p/N43w92SM-Bs
202+
// Play: https://go.dev/play/p/KJc2Pv3KNPW
203203
func (o Option[T]) ToPointer() *T {
204204
if !o.isPresent {
205205
return nil

0 commit comments

Comments
 (0)