Skip to content

Commit 8900fd7

Browse files
authored
Minor doc/comment edits (#47)
1 parent 10ff9e7 commit 8900fd7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nexus/completion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"time"
1313
)
1414

15-
// NewCompletionHTTPRequest creates an HTTP request deliver an operation completion to a given URL.
15+
// NewCompletionHTTPRequest creates an HTTP request that delivers an operation completion to a given URL.
1616
//
1717
// NOTE: Experimental
1818
func NewCompletionHTTPRequest(ctx context.Context, url string, completion OperationCompletion) (*http.Request, error) {

nexus/handle.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func (h *OperationHandle[T]) GetResult(ctx context.Context, options GetOperation
105105
for {
106106
if wait > 0 {
107107
if deadline, set := ctx.Deadline(); set {
108-
// Ensure we don't wait longer than the deadline but give some buffer prevent racing between wait and
108+
// Ensure we don't wait longer than the deadline but give some buffer to prevent racing between wait and
109109
// context deadline.
110110
wait = min(wait, time.Until(deadline)+getResultContextPadding)
111111
}

0 commit comments

Comments
 (0)