Skip to content

Commit 5beafd8

Browse files
glaukiol1sbinet
andcommitted
Update os/os.module.go
Co-authored-by: Sebastien Binet <[email protected]>
1 parent eba1b84 commit 5beafd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

os/os.module.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ func chdir(self py.Object, args py.Tuple) (py.Object, error) {
9494
return py.None, nil
9595
}
9696

97-
// get a enviroment variable by key
98-
// Return the value of the environment variable key if it exists, or default if it doesn’t. key, default and the result are str.
97+
// getenv returns the value of the environment variable key.
98+
// If no such environment variable exists and a default value was provided, that value is returned.
9999
func getenv(self py.Object, args py.Tuple) (py.Object, error) {
100100
var key py.Object // key to search for
101101
var default_ py.Object // return when not found

0 commit comments

Comments
 (0)