Skip to content

Commit 2d73270

Browse files
committed
book: fix dead cross-link anchor to C++20 concepts (en)
The en SFINAE section linked #concept-and-constraints, but the en Chapter 10 heading is 'Concept' (anchor #concept). Fix the anchor.
1 parent 354bc7d commit 2d73270

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

book/en-us/02-usability.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ auto has_size(const T& c) -> decltype(c.size(), std::true_type{}) {
957957
std::false_type has_size(...) { return std::false_type{}; }
958958
```
959959

960-
SFINAE is powerful but obscure to write and produces verbose error messages. C++20's [concepts](./10-cpp20.md#concept-and-constraints) were introduced precisely to express such constraints in a more intuitive and readable way, and can be regarded as the modern replacement for SFINAE.
960+
SFINAE is powerful but obscure to write and produces verbose error messages. C++20's [concepts](./10-cpp20.md#concept) were introduced precisely to express such constraints in a more intuitive and readable way, and can be regarded as the modern replacement for SFINAE.
961961

962962
## 2.6 Object-oriented
963963

0 commit comments

Comments
 (0)