diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-17 02:04:45 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-17 02:08:41 +0300 |
commit | ea0c86e961de20d4215824d5cfd239a1f4c4cc90 (patch) | |
tree | e71ac0d90968892d53d94f15191a1bbb93f24665 /source/blender/blenlib | |
parent | 27388f7f46db6ce87d89bf1aa3350c899d56f42b (diff) |
Cleanup: spelling in comments
Use <pre>..</pre> for pseudo-code.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/path_util.c | 4 | ||||
-rw-r--r-- | source/blender/blenlib/tests/BLI_mesh_boolean_test.cc | 10 | ||||
-rw-r--r-- | source/blender/blenlib/tests/BLI_mesh_intersect_test.cc | 10 |
3 files changed, 14 insertions, 10 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c index f94d49cf1dd..6c576627fa0 100644 --- a/source/blender/blenlib/intern/path_util.c +++ b/source/blender/blenlib/intern/path_util.c @@ -313,8 +313,8 @@ bool BLI_filename_make_safe(char *fname) bool BLI_path_make_safe(char *path) { - /* Simply apply BLI_filename_make_safe() over each component of the path. - * Luckily enough, same 'safe' rules applies to filenames and dirnames. */ + /* Simply apply #BLI_filename_make_safe() over each component of the path. + * Luckily enough, same 'safe' rules applies to file & directory names. */ char *curr_slash, *curr_path = path; bool changed = false; bool skip_first = false; diff --git a/source/blender/blenlib/tests/BLI_mesh_boolean_test.cc b/source/blender/blenlib/tests/BLI_mesh_boolean_test.cc index 95cf0f17d2e..fabc2412828 100644 --- a/source/blender/blenlib/tests/BLI_mesh_boolean_test.cc +++ b/source/blender/blenlib/tests/BLI_mesh_boolean_test.cc @@ -39,11 +39,13 @@ class IMeshBuilder { return std::pair<int, int>(e_index / MAX_FACE_LEN, e_index % MAX_FACE_LEN); } - /* + /** * Spec should have form: - * #verts #faces - * mpq_class mpq_class mpq_clas [#verts lines] - * int int int ... [#faces lines; indices into verts for given face] + * <pre> + * #verts #faces + * mpq_class mpq_class mpq_clas [#verts lines] + * int int int ... [#faces lines; indices into verts for given face] + * </pre> */ IMeshBuilder(const char *spec) { diff --git a/source/blender/blenlib/tests/BLI_mesh_intersect_test.cc b/source/blender/blenlib/tests/BLI_mesh_intersect_test.cc index 4ddf656ff2e..d6a7a338d13 100644 --- a/source/blender/blenlib/tests/BLI_mesh_intersect_test.cc +++ b/source/blender/blenlib/tests/BLI_mesh_intersect_test.cc @@ -42,11 +42,13 @@ class IMeshBuilder { return std::pair<int, int>(e_index / MAX_FACE_LEN, e_index % MAX_FACE_LEN); } - /* + /** * Spec should have form: - * #verts #faces - * mpq_class mpq_class mpq_clas [#verts lines] - * int int int ... [#faces lines; indices into verts for given face] + * <pre> + * #verts #faces + * mpq_class mpq_class mpq_clas [#verts lines] + * int int int ... [#faces lines; indices into verts for given face] + * </pre> */ IMeshBuilder(const char *spec) { |