Skip to content

Commit 6d354c5

Browse files
authored
update documentation
1 parent 5d94ded commit 6d354c5

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

docs/api.rst

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ API
2828

2929
Example: ::
3030

31-
if (auto m = ctre::match<"(?<chars>[a-z]+([0-9]+)">("abc123")) {
32-
//TODO I can't seem to get named captures to work
31+
if (auto m = ctre::match<"(?<chars>[a-z]+)([0-9]+)">("abc123")) {
32+
m.get<"chars">(); //abc
3333
m.get<2>(); //123
3434
}
3535

@@ -53,11 +53,6 @@ API
5353

5454
Converts the match to a string view.
5555

56-
.. function:: constexpr auto operator*() const noexcept
57-
constexpr auto operator*() noexcept
58-
59-
TODO I can't tell what these are supposed to do.
60-
6156
.. class:: template<size_t Id, typename Name = void> captured_content
6257

6358
.. class:: template <typename Iterator> storage

0 commit comments

Comments
 (0)