From fd8ee01d8968cc34f822207e2e917ae2efddca06 Mon Sep 17 00:00:00 2001 From: Adrian Lanzafame Date: Fri, 26 Oct 2018 17:05:42 +1000 Subject: [PATCH] fix indentation of marshalling code sample --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 87bbc8b..e715d18 100644 --- a/README.md +++ b/README.md @@ -625,11 +625,11 @@ import ( func yamlStringSettings() string { c := viper.AllSettings() - bs, err := yaml.Marshal(c) - if err != nil { + bs, err := yaml.Marshal(c) + if err != nil { t.Fatalf("unable to marshal config to YAML: %v", err) } - return string(bs) + return string(bs) } ```