Skip to content

Commit 4bfd491

Browse files
authored
fix typo in algorithm's sample code
1 parent a897609 commit 4bfd491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/algorithm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ sort(pv.begin(), pv.end(), [](auto&& a, auto&& b){ return a.name < b.name; });
109109
// デフォルトの述語(ranges::less{})で、nameでソート
110110
ranges::sort(pv, {}, [](auto&& a){ return a.name; });
111111
// std::invokeで呼び出されるため、メンバ変数ポインタでもよい
112-
ranges::sort(pv, {}, &Parson::name);
112+
ranges::sort(pv, {}, &Person::name);
113113
```
114114
* ranges::sort[link algorithm/ranges_sort.md]
115115
* ranges::less[link /reference/functional/ranges_less.md]

0 commit comments

Comments
 (0)