Skip to content

Commit 23546bd

Browse files
committed
refactor: correct spelling mistakes and clean up examples
1 parent ba8f157 commit 23546bd

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ type Cake struct {
2121
}
2222

2323
func (b Cake) TableName() string { return "cakes" }
24-
func (b *Cake) SetID(id uint32) { b.ID = id }
25-
func (b *Cake) Ref() any { return b }
2624

27-
func hiarchy() {
25+
func hierarchy() {
2826
db, err := kvs.NewMemKVDB()
2927
if err != nil {
3028
panic(err)

example/simple.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ type Balloon struct {
1414
}
1515

1616
func (b Balloon) TableName() string { return "balloons" }
17-
func (b *Balloon) SetID(id uint32) { b.ID = id }
18-
func (b *Balloon) Ref() any { return b }
1917

2018
func main() {
2119
db, err := kvs.NewMemKVDB()

storage/store_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ type Balloon struct {
1515
}
1616

1717
func (b Balloon) TableName() string { return "balloons" }
18-
func (b *Balloon) SetID(id uint32) { b.ID = id }
19-
func (b *Balloon) Ref() any { return b }
2018

2119
type Cake struct {
2220
ID uint32 `mdb:"ignore"`
@@ -25,8 +23,6 @@ type Cake struct {
2523
}
2624

2725
func (b Cake) TableName() string { return "cakes" }
28-
func (b *Cake) SetID(id uint32) { b.ID = id }
29-
func (b *Cake) Ref() any { return b }
3026

3127
func TestStoreAndLoadMultipleBalloonsSuccess(t *testing.T) {
3228
is := is.New(t)

0 commit comments

Comments
 (0)