瀏覽代碼

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");
     });