From ee846135128be014cf17314a35c0d64a746418c7 Mon Sep 17 00:00:00 2001 From: Pawan Rawal Date: Sun, 17 Feb 2019 12:58:58 +1100 Subject: [PATCH] Fix indentation for yamlStringSettings The indentation seemed messed up and didn't read well. This change fixes it. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0208eac..6a18288 100644 --- a/README.md +++ b/README.md @@ -630,11 +630,11 @@ import ( func yamlStringSettings() string { c := viper.AllSettings() - bs, err := yaml.Marshal(c) - if err != nil { - t.Fatalf("unable to marshal config to YAML: %v", err) + bs, err := yaml.Marshal(c) + if err != nil { + log.Fatalf("unable to marshal config to YAML: %v", err) } - return string(bs) + return string(bs) } ```