From 08ec44ed04e9e221098c0d51d9c4268a1c7c30fd Mon Sep 17 00:00:00 2001 From: Pawan Rawal Date: Tue, 8 Jan 2019 11:29:58 +1100 Subject: [PATCH] Fix indentation for yamlStringSettings The indentation seemed messed up and didn't read well. This change fixes it. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0208eac..60c4109 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 { + bs, err := yaml.Marshal(c) + if err != nil { t.Fatalf("unable to marshal config to YAML: %v", err) } - return string(bs) + return string(bs) } ```