Update syntax-highlighting.md

This commit is contained in:
Bjørn Erik Pedersen 2019-11-27 23:01:10 +01:00 committed by GitHub
parent df9dead83d
commit be64af9f53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,11 +74,9 @@ func GetTitleFunc(style string) func(s string) string {
case "go":
return strings.Title
case "chicago":
tc := transform.NewTitleConverter(transform.ChicagoStyle)
return tc.Title
return transform.NewTitleConverter(transform.ChicagoStyle)
default:
tc := transform.NewTitleConverter(transform.APStyle)
return tc.Title
return transform.NewTitleConverter(transform.APStyle)
}
}
{{< / highlight >}}
@ -117,11 +115,9 @@ func GetTitleFunc(style string) func(s string) string {
case "go":
return strings.Title
case "chicago":
tc := transform.NewTitleConverter(transform.ChicagoStyle)
return tc.Title
return transform.NewTitleConverter(transform.ChicagoStyle)
default:
tc := transform.NewTitleConverter(transform.APStyle)
return tc.Title
return transform.NewTitleConverter(transform.APStyle)
}
}
```