1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-03-17 20:58:08 +02:00

docs(readme): fix call to WithClasses

This commit is contained in:
Ted Summer 2022-01-29 12:08:10 -07:00 committed by Alec Thomas
parent 59896e357d
commit d9c7dea1e6

View File

@ -192,7 +192,7 @@ following constructor options:
If `WithClasses()` is used, the corresponding CSS can be obtained from the formatter with: If `WithClasses()` is used, the corresponding CSS can be obtained from the formatter with:
```go ```go
formatter := html.New(html.WithClasses()) formatter := html.New(html.WithClasses(true))
err := formatter.WriteCSS(w, style) err := formatter.WriteCSS(w, style)
``` ```