Skip to content

Commit 4f01a02

Browse files
bakinovsky-mAaronBallman
authored andcommitted
Fix documentation typos; NFC
Fixes bugprone-virtual-near-miss & performance-type-promotion-in-math-fn.
1 parent 23a5090 commit 4f01a02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang-tools-extra/docs/clang-tidy/checks/bugprone-virtual-near-miss.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ Example:
1515
};
1616

1717
struct Derived : Base {
18-
virtual funk();
18+
virtual void funk();
1919
// warning: 'Derived::funk' has a similar name and the same signature as virtual method 'Base::func'; did you mean to override it?
2020
};

clang-tools-extra/docs/clang-tidy/checks/performance-type-promotion-in-math-fn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ performance-type-promotion-in-math-fn
66
Finds calls to C math library functions (from ``math.h`` or, in C++, ``cmath``)
77
with implicit ``float`` to ``double`` promotions.
88

9-
For example, warns on ``::sin(0.f)``, because this funciton's parameter is a
9+
For example, warns on ``::sin(0.f)``, because this function's parameter is a
1010
double. You probably meant to call ``std::sin(0.f)`` (in C++), or ``sinf(0.f)``
1111
(in C).
1212

0 commit comments

Comments
 (0)