Skip to content

Commit a119b21

Browse files
committed
fixed typos
1 parent 7969aef commit a119b21

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

blob.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (repo *Repository) CreateBlobFromBuffer(data []byte) (*Oid, error) {
4848
var size C.size_t
4949

5050
// Go 1.6 added some increased checking of passing pointer to
51-
// C, but its check depends on its expectations of waht we
51+
// C, but its check depends on its expectations of what we
5252
// pass to the C function, so unless we take the address of
5353
// its contents at the call site itself, it can fail when
5454
// 'data' is a slice of a slice.

object_test.go

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

109109
func checkShortId(t *testing.T, Id, shortId string) {
110110
if len(shortId) < 7 || len(shortId) >= len(Id) {
111-
t.Fatalf("bad shortId lenght %d", len(shortId))
111+
t.Fatalf("bad shortId length %d", len(shortId))
112112
}
113113

114114
if !strings.HasPrefix(Id, shortId) {

repository.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ type Repository struct {
1919
Remotes RemoteCollection
2020
// Submodules represents the collection of submodules and can
2121
// be used to add, remove and configure submodules in this
22-
// repostiory.
22+
// repository.
2323
Submodules SubmoduleCollection
2424
// References represents the collection of references and can
25-
// be used to create, remove or update refernces for this repository.
25+
// be used to create, remove or update references for this repository.
2626
References ReferenceCollection
2727
// Notes represents the collection of notes and can be used to
2828
// read, write and delete notes from this repository.

0 commit comments

Comments
 (0)