aboutsummaryrefslogtreecommitdiff
path: root/internal/conf/computed.go
diff options
context:
space:
mode:
authorAtin <61903527+atin@users.noreply.github.com>2021-05-19 10:42:09 +0530
committerGitHub <noreply@github.com>2021-05-19 13:12:09 +0800
commitd6987ee05be8b5da279e530cfd65512cb903c72b (patch)
tree92da4f00413abb945477a2c4e9df509a9c5b161d /internal/conf/computed.go
parent509a392272a2ba2bde9d64bf5a55a58d0eadccc4 (diff)
chore: fix typos in code comments (#6556)
Diffstat (limited to 'internal/conf/computed.go')
-rw-r--r--internal/conf/computed.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/conf/computed.go b/internal/conf/computed.go
index 64eb322d..95acf64f 100644
--- a/internal/conf/computed.go
+++ b/internal/conf/computed.go
@@ -53,7 +53,7 @@ var (
workDirOnce sync.Once
)
-// WorkDir returns the absolute path of work directory. It reads the value of envrionment
+// WorkDir returns the absolute path of work directory. It reads the value of environment
// variable GOGS_WORK_DIR. When not set, it uses the directory where the application's
// binary is located.
func WorkDir() string {
@@ -75,8 +75,8 @@ var (
)
// CustomDir returns the absolute path of the custom directory that contains local overrides.
-// It reads the value of envrionment variable GOGS_CUSTOM. When not set, it uses the work
-// directory returned by WorkDir fucntion.
+// It reads the value of environment variable GOGS_CUSTOM. When not set, it uses the work
+// directory returned by WorkDir function.
func CustomDir() string {
customDirOnce.Do(func() {
customDir = os.Getenv("GOGS_CUSTOM")