From 0c777cfac1762bd58551498086741daa8157e204 Mon Sep 17 00:00:00 2001 From: Pawan Rawal Date: Wed, 12 Jun 2019 06:53:59 +1000 Subject: [PATCH] Fix indentation for yamlStringSettings (#651) 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 df874f3..e4531fc 100644 --- a/README.md +++ b/README.md @@ -652,11 +652,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) } ```