Skip to content

Commit

Permalink
Fix readme mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
neilotoole committed May 31, 2023
1 parent 73bb58f commit d99b64e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ unlike a call to `t.Log`, which is correlated with your test's execution.

```go
func TestSlog_Ugly(t *testing.T) {
log := slog.New(slog.NewTextHandler(os.Stdout))
t.Log("I am indented correctly")
log.Info("But I am not")
log := slog.New(slog.NewTextHandler(os.Stdout, nil))
t.Log("I am indented correctly")
log.Info("But I am not")
}
```

Expand Down

0 comments on commit d99b64e

Please sign in to comment.