Skip to content

Commit d7ba016

Browse files
committed
Fix.
1 parent 0394ea1 commit d7ba016

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ consteval double parse(std::string_view input) {
8888

8989
// This function should compile to a function which
9090
// merely returns 3.1415.
91-
double constexptest() {
91+
constexpr double constexptest() {
9292
return parse("3.1415 input");
9393
}
9494
```

tests/example_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ consteval double parse(std::string_view input) {
5454

5555
// This function should compile to a function which
5656
// merely returns 3.1415.
57-
double constexptest() {
57+
constexpr double constexptest() {
5858
return parse("3.1415 input");
5959
}
6060
#endif

0 commit comments

Comments
 (0)