Skip to content

Commit da7d2c1

Browse files
committed
docs: fix typos in comments
1 parent 95add0e commit da7d2c1

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

parser_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ func Test_parsePattern(t *testing.T) {
668668
name: "path ending with slash double dot",
669669
path: "/..",
670670
},
671-
// Allowed dot and slash combinaison
671+
// Allowed dot and slash combinations
672672
{
673673
name: "last path segment starting with slash dot and text",
674674
path: "/foo/.bar",

tree.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func (t *tXn) commit() *iTree {
9898
}
9999

100100
// clone capture a point-in-time clone of the transaction. The cloned transaction will contain
101-
// any uncommited writes in the original transaction but further mutations to either will be independent and result
101+
// any uncommitted writes in the original transaction but further mutations to either will be independent and result
102102
// in different tree on commit.
103103
func (t *tXn) clone() *tXn {
104104
t.writable = nil

txn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ func (txn *Txn) Abort() {
401401

402402
// Snapshot returns a point in time snapshot of the current state of the transaction.
403403
// Returns a new read-only transaction or nil if the transaction is already aborted
404-
// or commited.
404+
// or committed.
405405
func (txn *Txn) Snapshot() *Txn {
406406
if txn.rootTxn == nil {
407407
return nil

txn_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func TestTxn_Isolation(t *testing.T) {
141141

142142
txn.Commit()
143143

144-
// Reflect after commited
144+
// Reflect after committed
145145
tree = f.getTree()
146146
assert.Empty(t, tree.methods)
147147
assert.Equal(t, 0, iterutil.Len(f.Iter().All()))

0 commit comments

Comments
 (0)