Skip to content

Commit 389bab2

Browse files
gqcnCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 3ec4b5c commit 389bab2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

os/gcfg/gcfg.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ func (c *Config) Get(ctx context.Context, pattern string, def ...any) (*gvar.Var
119119
//
120120
// Fetching Rules: Environment arguments are in uppercase format, eg: GF_PACKAGE_VARIABLE.
121121
//
122-
// Note: This method uses configuration file as the primary source, with environment variable
123-
// as fallback only when config value is not found. If you need standard priority where
124-
// environment variables can override config file values, use GetEffective instead.
122+
// Note: This method uses the configuration (adapter) as the primary source, with environment
123+
// variable as fallback only when the configuration value is not found. If you need standard
124+
// priority where environment variables can override configuration values, use GetEffective instead.
125125
func (c *Config) GetWithEnv(ctx context.Context, pattern string, def ...any) (*gvar.Var, error) {
126126
value, err := c.Get(ctx, pattern)
127127
if err != nil && gerror.Code(err) != gcode.CodeNotFound {

0 commit comments

Comments
 (0)