Skip to content

Commit

Permalink
Rename variable in README example
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightning committed Jul 18, 2023
1 parent 98e25f1 commit 574233c
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 @@ -13,10 +13,10 @@ func expensiveFunction() (*any, error) {
// ...
}

var memoizer = memoizer.New(expensiveFunction, 10*time.Second)
var memoized = memoizer.New(expensiveFunction, 10*time.Second)

for i := 0; i < 50; i++ {
value, err := memoizer.Get()
value, err := memoized.Get()

// ...
}
Expand Down

0 comments on commit 574233c

Please sign in to comment.