Skip to content

Commit ad4466e

Browse files
committed
fix wrong english grammar in comments
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
1 parent 7da1495 commit ad4466e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rest/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func (d *lspData) position() (protocol.Position, error) {
7171
}, nil
7272
}
7373

74-
// API is the struct that manages the different endpoint provided by the langServer.
74+
// API is the struct that manages the different endpoints provided by the language server REST API.
7575
// It also takes care of creating all necessary HTTP middleware.
7676
type API struct {
7777
langServer langserver.HeadlessServer

rest/doc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ Supported endpoints:
2323
/hover
2424
/signatureHelp
2525
26-
All endpoint are only available through the HTTP method POST. For each request, you have to provide the following JSON:
26+
All endpoints are only available through the HTTP method POST. For each request, you have to provide the following JSON:
2727
2828
{
2929
"expr": "a PromQL expression" # Mandatory for all available endpoints
30-
"limit": 45 # Optional. It will be used only for the endpoints /diagnostics and /completion. It's the maximum number of result returned.
30+
"limit": 45 # Optional. It will be used only for the endpoints /diagnostics and /completion. It's the maximum number of results returned.
3131
"positionLine": 0 # Mandatory for the endpoints /signatureHelp, /hover and /completion. The line (0 based) for which the metadata is queried.
3232
"positionChar": 2 # Mandatory for the endpoints /signatureHelp, /hover and /completion. The column (0 based) for which the metadata is queried. Characters are counted as UTF-16 code points.
3333
}

0 commit comments

Comments
 (0)