diff --git a/README.markdown b/README.markdown index 77c8aff23..7a622d62a 100644 --- a/README.markdown +++ b/README.markdown @@ -101,12 +101,12 @@ Route patterns may also include wildcard parameters, accessible through the `spl get("/say/*/to/*) { // Matches "GET /say/hello/to/world" - multiParams("splat") # == Seq("hello", "world") + multiParams("splat") // == Seq("hello", "world") } get("/download/*.*) { // Matches "GET /download/path/to/file.xml" - multiParams("splat") # == Seq("path/to/file", "xml") + multiParams("splat") // == Seq("path/to/file", "xml") } #### Regular expressions @@ -115,7 +115,7 @@ The route matcher may also be a regular expression. Capture groups are accessib get("""^\/f(.*)/b(.*)""".r) { // Matches "GET /foo/bar" - multiParams("captures") # == Seq("oo", "ar") + multiParams("captures") // == Seq("oo", "ar") } #### Path patterns in the REPL diff --git a/website/src/documentation/core.page b/website/src/documentation/core.page index 8b3873970..59576f3f4 100644 --- a/website/src/documentation/core.page +++ b/website/src/documentation/core.page @@ -53,12 +53,12 @@ Route patterns may also include wildcard parameters, accessible through the get("/say/*/to/*) { // Matches "GET /say/hello/to/world" - multiParams("splat") # == Seq("hello", "world") + multiParams("splat") // == Seq("hello", "world") } get("/download/*.*) { // Matches "GET /download/path/to/file.xml" - multiParams("splat") # == Seq("path/to/file", "xml") + multiParams("splat") // == Seq("path/to/file", "xml") } #### Regular expressions @@ -68,7 +68,7 @@ accessible through the `captures` key. get("""^\/f(.*)/b(.*)""".r) { // Matches "GET /foo/bar" - multiParams("captures") # == Seq("oo", "ar") + multiParams("captures") // == Seq("oo", "ar") } #### Path patterns in the REPL