소스 검색

Correct the example in README.

yhirose 9 년 전
부모
커밋
5cb05258ee
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -25,8 +25,8 @@ int main(void)
         res.set_content("Hello World!", "text/plain");
     });
 
-    svr_.get(R"(/numbers/(\d+))", [&](const auto& req, auto& res) {
-        string numbers = req.matches[1];
+    svr.get(R"(/numbers/(\d+))", [&](const auto& req, auto& res) {
+        auto numbers = req.matches[1];
         res.set_content(numbers, "text/plain");
     });