Skip to content
This repository was archived by the owner on Sep 9, 2021. It is now read-only.

Commit 77887c7

Browse files
committed
Update the first example
1 parent d8db4b9 commit 77887c7

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
@@ -26,7 +26,7 @@ namespace keywords {
2626

2727
template <class ...Args> // In Python:
2828
void draw_text(Args &&...args) { // def draw_text(x: int, y: int, msg: Any, *, width: int = 4) -> None:
29-
auto &&[x, y, msg, width] = match(
29+
auto [x, y, msg, width] = match(
3030
parameter<int>(keywords::x),
3131
parameter<int>(keywords::y),
3232
parameter(keywords::msg),

example/draw_text.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace keywords {
2525

2626
template <class ...Args> // In Python:
2727
void draw_text(Args &&...args) { // def draw_text(x: int, y: int, msg: Any, *, width: int = 4) -> None:
28-
auto &&[x, y, msg, width] = match(
28+
auto [x, y, msg, width] = match(
2929
parameter<int>(keywords::x),
3030
parameter<int>(keywords::y),
3131
parameter(keywords::msg),

0 commit comments

Comments
 (0)