Skip to content

Commit

Permalink
Fix be.SliceLen example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
rliebz committed Jan 9, 2024
1 parent 1a409e8 commit 8dbfde1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ The function also returns a boolean indicating whether the check was
successful, allowing you to safely chain assertion logic:

```go
if g.Should(be.Len(mySlice, 1)) {
if g.Should(be.SliceLen(mySlice, 1)) {
g.Should(be.Equal(mySlice[0], "foo"))
}
```
Expand Down

0 comments on commit 8dbfde1

Please sign in to comment.