Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorbigmoonbit2026-01-03 23:05:18 +0800
committerGitHub2026-01-03 16:05:18 +0100
commitcd4fc88e2a50b59b117a974e69366232243d4f56 (patch)
tree2abcbfb326004045eb176d6c05b80d00848240a1
parenta50ac2f68117b805d94af4f760abaff10bf7092b (diff)
downloadcatch3-cd4fc88e2a50b59b117a974e69366232243d4f56.tar.gz
chore: fix some typos in comments (#3048)
Signed-off-by: bigmoonbit <bigmoonbit@outlook.com> Co-authored-by: Martin Hořeňovský <martin.horenovsky@gmail.com>
-rw-r--r--docs/own-main.md2
-rw-r--r--src/catch2/benchmark/detail/catch_benchmark_stats_fwd.hpp2
-rwxr-xr-xtools/scripts/approvalTests.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/docs/own-main.md b/docs/own-main.md
index 4cc21b15..07cb4903 100644
--- a/docs/own-main.md
+++ b/docs/own-main.md
@@ -65,7 +65,7 @@ int main( int argc, char* argv[] ) {
returnCode = session.run();
- // returnCode encodes the type of error that occured. See the
+ // returnCode encodes the type of error that occurred. See the
// integer constants in catch_session.hpp for more information
// on what each return code means.
diff --git a/src/catch2/benchmark/detail/catch_benchmark_stats_fwd.hpp b/src/catch2/benchmark/detail/catch_benchmark_stats_fwd.hpp
index 2ccc25d5..d59cc9b8 100644
--- a/src/catch2/benchmark/detail/catch_benchmark_stats_fwd.hpp
+++ b/src/catch2/benchmark/detail/catch_benchmark_stats_fwd.hpp
@@ -14,7 +14,7 @@ namespace Catch {
// We cannot forward declare the type with default template argument
// multiple times, so it is split out into a separate header so that
- // we can prevent multiple declarations in dependees
+ // we can prevent multiple declarations in dependencies
template <typename Duration = Benchmark::FDuration>
struct BenchmarkStats;
diff --git a/tools/scripts/approvalTests.py b/tools/scripts/approvalTests.py
index 144edc06..72ff26ca 100755
--- a/tools/scripts/approvalTests.py
+++ b/tools/scripts/approvalTests.py
@@ -56,7 +56,7 @@ filelocParser = re.compile(r'''
''', re.VERBOSE)
lineNumberParser = re.compile(r' line="[0-9]*"')
hexParser = re.compile(r'\b(0[xX][0-9a-fA-F]+)\b')
-# Note: junit must serialize time with 3 (or or less) decimal places
+# Note: junit must serialize time with 3 (or less) decimal places
# before generalizing this parser, make sure that this is checked
# in other places too.
junitDurationsParser = re.compile(r' time="[0-9]+\.[0-9]{3}"')