Skip to content

Commit b880694

Browse files
authored
Merge pull request #4862 from Rageking8/fix-invalid-nodiscard-attribute
Fix invalid nodiscard attribute
2 parents a61d6a8 + 6c3bef6 commit b880694

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/standard-library/ambiguous-local-time.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ You typically won't create this exception. It's thrown by functions that convert
9898
Gets a string describing the details of the ambiguity.
9999
100100
```cpp
101-
[nodiscard] virtual const char* what() const noexcept;
101+
[[nodiscard]] virtual const char* what() const noexcept;
102102
```
103103

104104
### Return value

docs/standard-library/nonexistent-local-time.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ You typically won't create this exception. It's thrown by functions that convert
9494
Gets a string describing why the time is non-existent.
9595
9696
```cpp
97-
[nodiscard] virtual const char* what() const noexcept;
97+
[[nodiscard]] virtual const char* what() const noexcept;
9898
```
9999

100100
### Return value

docs/standard-library/subrange-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ Returns `true` if the `subrange` has no elements. Otherwise, returns `false`.
332332
Get the sentinel at the end of the `subrange`
333333

334334
```cpp
335-
[[NODISCARD]] constexpr S end() const;
335+
[[nodiscard]] constexpr S end() const;
336336
```
337337

338338
### Parameters

0 commit comments

Comments
 (0)