Skip to content

Commit 613a5b6

Browse files
authored
Fix undeclared identifier error in "What's new for C++ in Visual Studio 2022" topic
1 parent 6000e0d commit 613a5b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/overview/what-s-new-for-visual-cpp-in-visual-studio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ A quick highlight of some new features:
107107
int answer_to_the_universe()
108108
{
109109
auto rng = fib() | std::views::drop(6) | std::views::take(3);
110-
return std::ranges::fold_left(std::move(range), 0, std::plus{});
110+
return std::ranges::fold_left(std::move(rng), 0, std::plus{});
111111
}
112112
```
113113

0 commit comments

Comments
 (0)