mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
fix inaccurate comment in README
This commit is contained in:
parent
6d76fb6104
commit
ce0fe87af3
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ Route patterns may include named parameters, accessible via the
|
|||
<tt>params</tt> hash:
|
||||
|
||||
get '/hello/:name' do
|
||||
# matches "GET /foo" and "GET /bar"
|
||||
# matches "GET /hello/foo" and "GET /hello/bar"
|
||||
# params[:name] is 'foo' or 'bar'
|
||||
"Hello #{params[:name]}!"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue