Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pysel authored Mar 31, 2023
1 parent 0fa3297 commit 4610745
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ This will retrieve the library.

```go
// open a new log file
log, err := Open("mylog", nil)
log, err := wal.Open("mylog", nil)

// write some entries
err = log.Write(1, []byte("first entry"))
Expand All @@ -47,7 +47,7 @@ Batch writes:
```go

// write three entries as a batch
batch := new(Batch)
batch := new(wal.Batch)
batch.Write(1, []byte("first entry"))
batch.Write(2, []byte("second entry"))
batch.Write(3, []byte("third entry"))
Expand Down

0 comments on commit 4610745

Please sign in to comment.