Skip to content

Commit 1c7e992

Browse files
maxtaran2010sferik
authored andcommitted
Fix typos in code comments
1 parent 9981d0c commit 1c7e992

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎lib/http/features/instrumentation.rb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ module Features
1414
#
1515
# Emits two events on every request:
1616
#
17-
# * `start_request.http` before the request is made, so you can log the reqest being started
18-
# * `request.http` after the response is recieved, and contains `start`
17+
# * `start_request.http` before the request is made, so you can log the request being started
18+
# * `request.http` after the response is received, and contains `start`
1919
# and `finish` so the duration of the request can be calculated.
2020
#
2121
class Instrumentation < Feature

‎lib/http/response.rb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,9 @@ def init_body(body, connection, encoding)
337337
# @return [HTTP::Request]
338338
# @api private
339339
def init_request(request, uri)
340-
raise ArgumentError, ":uri is for backwards compatibilty and conflicts with :request" if request && uri
340+
raise ArgumentError, ":uri is for backwards compatibility and conflicts with :request" if request && uri
341341

342-
# For backwards compatibilty
342+
# For backwards compatibility
343343
if uri
344344
HTTP::Request.new(uri: uri, verb: :get)
345345
else

0 commit comments

Comments
 (0)