diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-04-01 14:20:53 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-04-01 14:20:53 +0300 |
commit | 1bdceb813ccb9690e5746731038e7f0ce92ed134 (patch) | |
tree | b1af43f7f4956789bfe2f871ea92e4d079dfc56c /source/blender/blenlib/intern/path_util.c | |
parent | 2a5c0c34914cc89efb8816edba2cf62a6299a6c1 (diff) |
Cleanup: spelling
Diffstat (limited to 'source/blender/blenlib/intern/path_util.c')
-rw-r--r-- | source/blender/blenlib/intern/path_util.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c index b076d0f09c1..cb6cce30f92 100644 --- a/source/blender/blenlib/intern/path_util.c +++ b/source/blender/blenlib/intern/path_util.c @@ -1044,17 +1044,17 @@ bool BLI_path_abs(char *path, const char *basepath) #else BLI_strncpy(tmp, path, sizeof(tmp)); - /* Check for loading a windows path on a posix system - * in this case, there is no use in trying C:/ since it - * will never exist on a unix os. + /* Check for loading a MS-Windows path on a POSIX system + * in this case, there is no use in trying `C:/` since it + * will never exist on a Unix system. * - * Add a '/' prefix and lowercase the drive-letter, remove the ':'. - * C:\foo.JPG -> /c/foo.JPG */ + * Add a `/` prefix and lowercase the drive-letter, remove the `:`. + * `C:\foo.JPG` -> `/c/foo.JPG` */ if (isalpha(tmp[0]) && (tmp[1] == ':') && ELEM(tmp[2], '\\', '/')) { tmp[1] = tolower(tmp[0]); /* Replace ':' with drive-letter. */ tmp[0] = '/'; - /* '\' the slash will be converted later */ + /* `\` the slash will be converted later. */ } #endif |