Skip to content

Commit

Permalink
Merge branch 'rs:master' into errors-pkg-clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
vaguecoder committed Sep 12, 2022
2 parents 6c17c88 + e218d18 commit c083e5b
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 @@ -411,7 +411,7 @@ log.Info().Msg("hello world")
Equivalent of `Lshortfile`:

```go
zerolog.CallerMarshalFunc = func(file string, line int) string {
zerolog.CallerMarshalFunc = func(pc uintptr, file string, line int) string {
short := file
for i := len(file) - 1; i > 0; i-- {
if file[i] == '/' {
Expand Down

0 comments on commit c083e5b

Please sign in to comment.