From 8c894384998e656900b125e674b8c20dbf87cc06 Mon Sep 17 00:00:00 2001
From: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
Date: Thu, 8 Oct 2020 02:46:11 +0200
Subject: [PATCH] docs: improve AutomaticEnv documentation

Fixes #1000

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
---
 viper.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/viper.go b/viper.go
index 67eaa69..7027715 100644
--- a/viper.go
+++ b/viper.go
@@ -1292,8 +1292,8 @@ func (v *Viper) IsSet(key string) bool {
 	return val != nil
 }
 
-// AutomaticEnv has Viper check ENV variables for all.
-// keys set in config, default & flags
+// AutomaticEnv makes Viper check if environment variables match any of the existing keys
+// (config, default or flags). If matching env vars are found, they are loaded into Viper.
 func AutomaticEnv() { v.AutomaticEnv() }
 
 func (v *Viper) AutomaticEnv() {