diff --git a/docs/introduction/index.md b/docs/introduction/index.md index 9223cb83..1eca7ccd 100644 --- a/docs/introduction/index.md +++ b/docs/introduction/index.md @@ -116,7 +116,7 @@ conn = Faraday.new( headers: {'Content-Type' => 'application/json'} ) -resp = Faraday.get('search') do |req| +resp = conn.get('search') do |req| req.params['limit'] = 100 req.body = {query: 'salmon'}.to_json end