Skip to content

Commit 751ddae

Browse files
committed
fix: use proper Sink API in README example
1 parent 14b50c2 commit 751ddae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ go get cdr.dev/slog
3535
Many more examples available at [godoc](https://godoc.org/cdr.dev/slog#pkg-examples).
3636

3737
```go
38-
log := sloghuman.Make(os.Stdout)
38+
log := slog.Make(sloghuman.Sink(os.Stdout))
3939

4040
log.Info(context.Background(), "my message here",
4141
slog.F("field_name", "something or the other"),

0 commit comments

Comments
 (0)