Skip to content

Commit 6df30cb

Browse files
committed
fix sample to run
1 parent 3f17545 commit 6df30cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/algorithm/ranges_find.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ namespace std::ranges {
5959
6060
int main() {
6161
constexpr std::array v = { 3, 1, 4 };
62-
constexpr auto result = std::ranges::find(v, 1);
62+
const auto result = std::ranges::find(v, 1);
6363
if (result == v.end()) {
6464
std::cout << "not found" << std::endl;
6565
} else {

0 commit comments

Comments
 (0)