fix indentation of marshalling code sample

This commit is contained in:
Adrian Lanzafame 2018-10-26 17:05:42 +10:00 committed by GitHub
parent 62edee3196
commit fd8ee01d89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -625,11 +625,11 @@ import (
func yamlStringSettings() string { func yamlStringSettings() string {
c := viper.AllSettings() c := viper.AllSettings()
bs, err := yaml.Marshal(c) bs, err := yaml.Marshal(c)
if err != nil { if err != nil {
t.Fatalf("unable to marshal config to YAML: %v", err) t.Fatalf("unable to marshal config to YAML: %v", err)
} }
return string(bs) return string(bs)
} }
``` ```