From d9930d5fd0018fba9bd8bdda63cfd319c99c1884 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 17 Sep 2022 14:46:50 +1000 Subject: Cleanup: spelling, punctuation & repeated words in comments --- source/blender/blenlib/BLI_compute_context.hh | 2 +- source/blender/blenlib/BLI_path_util.h | 8 ++++---- source/blender/blenlib/intern/path_util.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'source/blender/blenlib') diff --git a/source/blender/blenlib/BLI_compute_context.hh b/source/blender/blenlib/BLI_compute_context.hh index 7422467e400..e3e5b6f9e85 100644 --- a/source/blender/blenlib/BLI_compute_context.hh +++ b/source/blender/blenlib/BLI_compute_context.hh @@ -10,7 +10,7 @@ * can combine the logged value with a `ComputeContext`, which identifies the place where the value * was computed. * - * This is not a trivial problem because e.g. just storing storing a pointer to the socket a value + * This is not a trivial problem because e.g. just storing a pointer to the socket a value * belongs to is not enough. That's because the same socket may correspond to many different values * when the socket is used in a node group that is used multiple times. In this case, not only does * the socket have to be stored but also the entire nested node group path that led to the diff --git a/source/blender/blenlib/BLI_path_util.h b/source/blender/blenlib/BLI_path_util.h index 5ae2de99d8f..1e45e76afe1 100644 --- a/source/blender/blenlib/BLI_path_util.h +++ b/source/blender/blenlib/BLI_path_util.h @@ -106,10 +106,10 @@ size_t BLI_path_join(char *__restrict dst, size_t dst_len, const char *path, ... const char *BLI_path_basename(const char *path) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT; /** * Get an element of the path at an index, eg: - * "/some/path/file.txt" where an index of: - * - 0 or -3: "some" - * - 1 or -2: "path" - * - 2 or -1: "file.txt" + * `/some/path/file.txt` where an index of: + * - 0 or -3: `some` + * - 1 or -2: `path` + * - 2 or -1: `file.txt` * * Ignores multiple slashes at any point in the path (including start/end). */ diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c index c053c3907db..9b91636b055 100644 --- a/source/blender/blenlib/intern/path_util.c +++ b/source/blender/blenlib/intern/path_util.c @@ -466,8 +466,8 @@ void BLI_path_rel(char *file, const char *relfile) #ifdef WIN32 if (BLI_strnlen(relfile, 3) > 2 && !BLI_path_is_abs(relfile)) { char *ptemp; - /* fix missing volume name in relative base, - * can happen with old recent-files.txt files */ + /* Fix missing volume name in relative base, + * can happen with old `recent-files.txt` files. */ BLI_windows_get_default_root_dir(temp); ptemp = &temp[2]; if (!ELEM(relfile[0], '\\', '/')) { -- cgit v1.2.3