Skip to content

Commit

Permalink
Changed from strings.ReplaceAll to strings.Replace
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnblad committed Jul 29, 2019
1 parent 1c38154 commit 5c2a121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ type s struct{}
func (s *s) ReadDoc() string {
sInfo := SwaggerInfo
sInfo.Description = strings.ReplaceAll(sInfo.Description, "\n", "\\n")
sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
t, err := template.New("swagger_info").Funcs(template.FuncMap{
"marshal": func(v interface{}) string {
Expand Down

0 comments on commit 5c2a121

Please sign in to comment.