Skip to content

Commit ad5cef5

Browse files
committed
doc: Update data directory path comments
1 parent b19e882 commit ad5cef5

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/util/system.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -642,10 +642,9 @@ void PrintExceptionContinue(const std::exception* pex, const char* pszThread)
642642

643643
fs::path GetDefaultDataDir()
644644
{
645-
// Windows < Vista: C:\Documents and Settings\Username\Application Data\Bitcoin
646-
// Windows >= Vista: C:\Users\Username\AppData\Roaming\Bitcoin
647-
// Mac: ~/Library/Application Support/Bitcoin
648-
// Unix: ~/.bitcoin
645+
// Windows: C:\Users\Username\AppData\Roaming\Bitcoin
646+
// macOS: ~/Library/Application Support/Bitcoin
647+
// Unix-like: ~/.bitcoin
649648
#ifdef WIN32
650649
// Windows
651650
return GetSpecialFolderPath(CSIDL_APPDATA) / "Bitcoin";
@@ -657,10 +656,10 @@ fs::path GetDefaultDataDir()
657656
else
658657
pathRet = fs::path(pszHome);
659658
#ifdef MAC_OSX
660-
// Mac
659+
// macOS
661660
return pathRet / "Library/Application Support/Bitcoin";
662661
#else
663-
// Unix
662+
// Unix-like
664663
return pathRet / ".bitcoin";
665664
#endif
666665
#endif

0 commit comments

Comments
 (0)