Skip to content

Commit

Permalink
Merge pull request #1 from phmx/patch-1
Browse files Browse the repository at this point in the history
Fixed typo in example
  • Loading branch information
candiduslynx authored Jan 20, 2023
2 parents c36a366 + b9e9ff3 commit cd2ed68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if the pointer is nil and default value isn't provided, `From` will panic.
// panics
_ = ptr.From((*float32)(nil))

var vv = floaat32(0.5)
var vv = float32(0.5)
value = ptr.From(&vv) // value = float32(0.5)
value = ptr.From((*float32)(nil), 0.7) // value = float32(0.7)
```
```

0 comments on commit cd2ed68

Please sign in to comment.