Skip to content

Commit 7abbca1

Browse files
authored
Add missing square brackets for [[nodiscard]] in C4834 reference
1 parent 62da4f5 commit 7abbca1

File tree

1 file changed

+1
-1
lines changed
  • docs/error-messages/compiler-warnings

1 file changed

+1
-1
lines changed

docs/error-messages/compiler-warnings/c4834.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ int square_of(int i) { return i * i; }
4343
int main()
4444
{
4545
square_of(42); // warning C4834: discarding return value of function with 'nodiscard' attribute
46-
// If ignoring the [[nodiscard] attribute is unintentional, make use of the return value as intended:
46+
// If ignoring the [[nodiscard]] attribute is unintentional, make use of the return value as intended:
4747
// For example:
4848
std::cout << "square_of(42) = " << square_of(42) << "\n"; // Ok
4949
// Or:

0 commit comments

Comments
 (0)