Fix a couple typos (#590)

This commit is contained in:
Ryan Guest 2019-08-21 21:41:37 -07:00 committed by Andy Brody
parent cf3e5a115b
commit 26280d47b2
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ require File.dirname(__FILE__) + '/restclient/windows'
# # DELETE
# RestClient.delete 'http://example.com/resource'
#
# # retreive the response http code and headers
# # retrieve the response http code and headers
# res = RestClient.get 'http://example.com/some.jpg'
# res.code # => 200
# res.headers[:content_type] # => 'image/jpg'

View File

@ -1,7 +1,7 @@
module RestClient
# The response from RestClient on a raw request looks like a string, but is
# actually one of these. 99% of the time you're making a rest call all you
# care about is the body, but on the occassion you want to fetch the
# care about is the body, but on the occasion you want to fetch the
# headers you can:
#
# RestClient.get('http://example.com').headers[:content_type]