Skip to content

Commit 35d949d

Browse files
authored
correct spelling errors (#234)
1 parent 16c1c8d commit 35d949d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

doc/rest-nvim.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ DYNAMIC VARIABLES *rest-nvim-usage-dynamic-variables*
199199

200200
`rest.nvim` allows the use of dynamic variables in requests.
201201

202-
The following dynamic variables are currenty supported:
202+
The following dynamic variables are currently supported:
203203
- $uuid: generates a universally unique identifier (UUID-v4)
204204
- $timestamp: generates the current UNIX timestamp (seconds since epoch)
205205
- $randomInt: generates a random integer between 0 and 1000

lua/rest-nvim/request/init.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ local function get_headers(bufnr, start_line, end_line)
121121
for line_number = start_line + 1, end_line do
122122
local line_content = vim.fn.getbufline(bufnr, line_number)[1]
123123

124-
-- message header and message body are seperated by CRLF (see RFC 2616)
124+
-- message header and message body are separated by CRLF (see RFC 2616)
125125
-- for our purpose also the next request line will stop the header search
126126
if is_request_line(line_content) or line_content == "" then
127127
headers_end = line_number
@@ -185,7 +185,7 @@ end
185185
-- start_request will find the request line (e.g. POST http://localhost:8081/foo)
186186
-- of the current request and returns the linenumber of this request line.
187187
-- The current request is defined as the next request line above the cursor
188-
-- @param bufnr The buffer nummer of the .http-file
188+
-- @param bufnr The buffer number of the .http-file
189189
-- @param linenumber (number) From which line to start looking
190190
local function start_request(bufnr, linenumber)
191191
log.debug("Searching pattern starting from " .. linenumber)
@@ -202,7 +202,7 @@ end
202202

203203
-- end_request will find the next request line (e.g. POST http://localhost:8081/foo)
204204
-- and returns the linenumber before this request line or the end of the buffer
205-
-- @param bufnr The buffer nummer of the .http-file
205+
-- @param bufnr The buffer number of the .http-file
206206
local function end_request(bufnr, linenumber)
207207
-- store old cursor position
208208
local oldlinenumber = linenumber

lua/rest-nvim/utils/init.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ M.get_env_variables = function()
142142
end
143143

144144
-- get_variables Reads the environment variables found in the env_file option
145-
-- (defualt: .env) specified in configuration or from the files being read
145+
-- (default: .env) specified in configuration or from the files being read
146146
-- with variables beginning with @ and returns a table with the variables
147147
M.get_variables = function()
148148
local variables = {}
@@ -401,7 +401,7 @@ M.http_status = function(code)
401401
[200] = "OK",
402402
[201] = "Created",
403403
[202] = "Accepted",
404-
[203] = "Non-authorative Information",
404+
[203] = "Non-authoritative Information",
405405
[204] = "No Content",
406406
[205] = "Reset Content",
407407
[206] = "Partial Content",
@@ -535,7 +535,7 @@ M.curl_error = function(code)
535535
[63] = "Maximum file size exceeded.",
536536
[64] = "Requested FTP SSL level failed.",
537537
[65] = "Sending the data requires a rewind that failed.",
538-
[66] = "Failed to initialise SSL Engine.",
538+
[66] = "Failed to initialize SSL Engine.",
539539
[67] = "The user name, password, or similar was not accepted and curl failed to log in.",
540540
[68] = "File not found on TFTP server.",
541541
[69] = "Permission problem on TFTP server.",

0 commit comments

Comments
 (0)