From 92fbb727354c5362b2ce681bbe89a9a72679679d Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Tue, 19 Nov 2019 14:06:54 +0100 Subject: [PATCH] Fix typos catched via misspell (thanks Go Report Card!) --- internal/server/data/resource_test.go | 4 ++-- internal/server/user/spawn/spawn_test.go | 2 +- spec/README.md | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/server/data/resource_test.go b/internal/server/data/resource_test.go index 7ed8fae..6951d8e 100644 --- a/internal/server/data/resource_test.go +++ b/internal/server/data/resource_test.go @@ -885,7 +885,7 @@ func TestGetRequestFileName404sWhenFileDoesntExist(t *testing.T) { } } -// TODO: Discuss which error is appropiate when the form doesn't exists +// TODO: Discuss which error is appropriate when the form doesn't exists func TestGetRequestFileName404sWhenFormDoesntExist(t *testing.T) { h := model.Handler{ Request: httptest.NewRequest("POST", "/", nil), @@ -964,7 +964,7 @@ func TestGetRequestFileContent404sWhenFileDoesntExist(t *testing.T) { } } -// TODO: Discuss which error is appropiate when the form doesn't exists +// TODO: Discuss which error is appropriate when the form doesn't exists func TestGetRequestFileContent404sWhenFormDoesntExist(t *testing.T) { h := model.Handler{ Request: httptest.NewRequest("POST", "/", nil), diff --git a/internal/server/user/spawn/spawn_test.go b/internal/server/user/spawn/spawn_test.go index ef77791..721f1ba 100644 --- a/internal/server/user/spawn/spawn_test.go +++ b/internal/server/user/spawn/spawn_test.go @@ -89,7 +89,7 @@ func TestSpawnWritesToStdout(t *testing.T) { jldata := decodeJailLover(out.Bytes()) if jldata.Cmdline[0] != locateJailLover() { - t.Error("Ouput does not match jaillover's") + t.Error("Output does not match jaillover's") } } diff --git a/spec/README.md b/spec/README.md index aadca97..f99a8f4 100644 --- a/spec/README.md +++ b/spec/README.md @@ -150,7 +150,7 @@ For instance, given this request: HTTP/1.1 GET /routes ``` -an appropiate reponse may look like this: +an appropriate reponse may look like this: ```http 200 OK Content-Type: application/json @@ -507,7 +507,7 @@ following resource paths: - Acceptable Value: Any string of bytes. - Default Value: N/A - Comment: For media types other than `application/octet-stream` you should - specify the appropiate `Content-Type` header. + specify the appropriate `Content-Type` header. **Note**: Parameters under `request` are read-only and, conversely, parameters under `response` are write-only.