Skip to content

Commit

Permalink
Make README examples "compilable" by using the correct comment charac…
Browse files Browse the repository at this point in the history
…ter.
  • Loading branch information
rossabaker committed May 4, 2011
1 parent 4a44bfc commit 61e294d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.markdown
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions website/src/documentation/core.page
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 61e294d

Please sign in to comment.