Skip to content

Commit

Permalink
Fix wrong chained writer example
Browse files Browse the repository at this point in the history
  • Loading branch information
System-Glitch committed Oct 22, 2024
1 parent 38696d2 commit c7e7932
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/basics/response.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ type LogWriter struct {

func NewWriter(response *goyave.Response) *LogWriter {
return &LogWriter{
writer: goyave.NewCommonWriter(response.Writer()),
response: response,
CommonWriter: goyave.NewCommonWriter(response.Writer()),
response: response,
}
}

Expand Down

0 comments on commit c7e7932

Please sign in to comment.