From 17674398a1a264c6a7ed10bdc31c5cd7d764b276 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Thu, 14 May 2020 05:40:07 +0200 Subject: [PATCH] Format README example --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ed3adfa..64e6e69 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Check out the [other examples](https://github.com/charmbracelet/glamour/tree/mas Bye! ` -out, _ := glamour.Render(in, "dark") +out, err := glamour.Render(in, "dark") fmt.Print(out) ``` @@ -39,13 +39,13 @@ fmt.Print(out) import "github.com/charmbracelet/glamour" r, _ := glamour.NewTermRenderer( - // detect background color and pick either the default dark or light theme - glamour.WithAutoStyle(), - // wrap output at specific width - glamour.WithWordWrap(40), + // detect background color and pick either the default dark or light theme + glamour.WithAutoStyle(), + // wrap output at specific width + glamour.WithWordWrap(40), ) -out, _ := r.Render(in) +out, err := r.Render(in) fmt.Print(out) ```