mirror of
https://github.com/wader/fq.git
synced 2024-12-23 05:13:30 +03:00
decode: rename parameter for consistency
This commit is contained in:
parent
93f2aa5d73
commit
98eab8cb5b
@ -27,7 +27,7 @@ func (pld *PosLoopDetector[T]) Pop() {
|
||||
// PushAndPop adds the current offset to the stack, executes the supplied
|
||||
// detection function, and returns the Pop method. A good usage of this is to
|
||||
// pair this method call with a defer statement.
|
||||
func (pld *PosLoopDetector[T]) PushAndPop(i T, detect func()) func() {
|
||||
pld.Push(i, detect)
|
||||
func (pld *PosLoopDetector[T]) PushAndPop(offset T, detect func()) func() {
|
||||
pld.Push(offset, detect)
|
||||
return pld.Pop
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user