@@ -936,13 +936,15 @@ proc getConfigDir*(): string {.rtl, extern: "nos$1",
936936proc getCacheDir * (): string =
937937 # # Returns the cache directory of the current user for applications.
938938 # #
939- # # on windows: `getEnv("LOCALAPPDATA")`
939+ # # This makes use of the following environment variables:
940940 # #
941- # # on osx : `getEnv("XDG_CACHE_HOME", getEnv("HOME") / "Library/Caches ")`
941+ # # * On Windows : `getEnv("LOCALAPPDATA ")`
942942 # #
943- # # else : `getEnv("XDG_CACHE_HOME", getEnv("HOME") / ".cache ")`
943+ # # * On macOS : `getEnv("XDG_CACHE_HOME", getEnv("HOME") / "Library/Caches ")`
944944 # #
945- # # See also:
945+ # # * On other platforms: `getEnv("XDG_CACHE_HOME", getEnv("HOME") / ".cache")`
946+ # #
947+ # # **See also:**
946948 # # * `getHomeDir proc <#getHomeDir>`_
947949 # # * `getTempDir proc <#getTempDir>`_
948950 # # * `getConfigDir proc <#getConfigDir>`_
@@ -958,9 +960,9 @@ proc getCacheDir*(): string =
958960proc getCacheDir * (app: string ): string =
959961 # # Returns the cache directory for an application `app`.
960962 # #
961- # # on windows: `getCacheDir() / app / "cache"`
963+ # # * On windows, this uses : `getCacheDir() / app / "cache"`
962964 # #
963- # # else:: `getCacheDir() / "cache" `
965+ # # * On other platforms, this uses: `getCacheDir() / app `
964966 when defined (windows):
965967 getCacheDir () / app / " cache"
966968 else :
0 commit comments