aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/api
diff options
context:
space:
mode:
authorferhat elmas <elmas.ferhat@gmail.com>2017-10-30 08:23:23 +0800
committerferhat elmas <elmas.ferhat@gmail.com>2017-10-30 08:23:23 +0800
commit07e8c177e7f1cceadc70709946aa24777b4bf2af (patch)
tree2cee788573cf551cb432c387f6be9412744ad853 /swarm/api
parent8d434f6a6f18c5172db9a8216d61cd50b746c964 (diff)
downloadgo-tangerine-07e8c177e7f1cceadc70709946aa24777b4bf2af.tar
go-tangerine-07e8c177e7f1cceadc70709946aa24777b4bf2af.tar.gz
go-tangerine-07e8c177e7f1cceadc70709946aa24777b4bf2af.tar.bz2
go-tangerine-07e8c177e7f1cceadc70709946aa24777b4bf2af.tar.lz
go-tangerine-07e8c177e7f1cceadc70709946aa24777b4bf2af.tar.xz
go-tangerine-07e8c177e7f1cceadc70709946aa24777b4bf2af.tar.zst
go-tangerine-07e8c177e7f1cceadc70709946aa24777b4bf2af.zip
core, swarm: typo fixes
Diffstat (limited to 'swarm/api')
-rw-r--r--swarm/api/http/error.go2
-rw-r--r--swarm/api/http/error_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/swarm/api/http/error.go b/swarm/api/http/error.go
index b4d46b3c4..dbd97182f 100644
--- a/swarm/api/http/error.go
+++ b/swarm/api/http/error.go
@@ -72,7 +72,7 @@ func initErrHandling() {
//ShowMultipeChoices is used when a user requests a resource in a manifest which results
//in ambiguous results. It returns a HTML page with clickable links of each of the entry
//in the manifest which fits the request URI ambiguity.
-//For example, if the user requests bzz:/<hash>/read and that manifest containes entries
+//For example, if the user requests bzz:/<hash>/read and that manifest contains entries
//"readme.md" and "readinglist.txt", a HTML page is returned with this two links.
//This only applies if the manifest has no default entry
func ShowMultipleChoices(w http.ResponseWriter, r *http.Request, list api.ManifestList) {
diff --git a/swarm/api/http/error_test.go b/swarm/api/http/error_test.go
index 465fbf4ca..ed52bafbd 100644
--- a/swarm/api/http/error_test.go
+++ b/swarm/api/http/error_test.go
@@ -132,7 +132,7 @@ func TestJsonResponse(t *testing.T) {
}
if !isJSON(string(respbody)) {
- t.Fatalf("Expected repsonse to be JSON, received invalid JSON: %s", string(respbody))
+ t.Fatalf("Expected response to be JSON, received invalid JSON: %s", string(respbody))
}
}