From 4610745934db33875a04c7391913e5899b09e36c Mon Sep 17 00:00:00 2001 From: Ruslan Akhtariev <46343690+pysel@users.noreply.github.com> Date: Fri, 31 Mar 2023 16:41:19 +0700 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 68cc0cd..ad39a2b 100644 --- a/README.md +++ b/README.md @@ -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")) @@ -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"))