Skip to content

Commit dd8a626

Browse files
authored
Merge pull request #15398 from ferhatelmas/core-swarm-typo
core, swarm: typo fixes
2 parents 8d434f6 + 07e8c17 commit dd8a626

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎core/tx_journal.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func (journal *txJournal) load(add func(*types.Transaction) error) error {
6868
}
6969
defer input.Close()
7070

71-
// Temporarilly discard any journal additions (don't double add on load)
71+
// Temporarily discard any journal additions (don't double add on load)
7272
journal.writer = new(devNull)
7373
defer func() { journal.writer = nil }()
7474

‎swarm/api/http/error.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func initErrHandling() {
7272
//ShowMultipeChoices is used when a user requests a resource in a manifest which results
7373
//in ambiguous results. It returns a HTML page with clickable links of each of the entry
7474
//in the manifest which fits the request URI ambiguity.
75-
//For example, if the user requests bzz:/<hash>/read and that manifest containes entries
75+
//For example, if the user requests bzz:/<hash>/read and that manifest contains entries
7676
//"readme.md" and "readinglist.txt", a HTML page is returned with this two links.
7777
//This only applies if the manifest has no default entry
7878
func ShowMultipleChoices(w http.ResponseWriter, r *http.Request, list api.ManifestList) {

‎swarm/api/http/error_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func TestJsonResponse(t *testing.T) {
132132
}
133133

134134
if !isJSON(string(respbody)) {
135-
t.Fatalf("Expected repsonse to be JSON, received invalid JSON: %s", string(respbody))
135+
t.Fatalf("Expected response to be JSON, received invalid JSON: %s", string(respbody))
136136
}
137137

138138
}

‎swarm/storage/pyramid.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
/*
2828
The main idea of a pyramid chunker is to process the input data without knowing the entire size apriori.
2929
For this to be achieved, the chunker tree is built from the ground up until the data is exhausted.
30-
This opens up new aveneus such as easy append and other sort of modifications to the tree therby avoiding
30+
This opens up new aveneus such as easy append and other sort of modifications to the tree thereby avoiding
3131
duplication of data chunks.
3232
3333
@@ -451,7 +451,7 @@ func (self *PyramidChunker) prepareChunks(isAppend bool, chunkLevel [][]*TreeEnt
451451
}
452452
}
453453

454-
// Data ended in chunk boundry.. just signal to start bulding tree
454+
// Data ended in chunk boundary.. just signal to start bulding tree
455455
if n == 0 {
456456
self.buildTree(isAppend, chunkLevel, parent, chunkWG, jobC, quitC, true, rootKey)
457457
break

0 commit comments

Comments
 (0)