Skip to content

Commit 5e1d8c1

Browse files
tshortmpastell
authored andcommitted
Fix a glitch with pop_preexecute_hook (#124)
1 parent 53c2a33 commit 5e1d8c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Weave.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ end
191191
#but note that Weave hooks take the chunk as input
192192
const preexecute_hooks = Function[]
193193
push_preexecute_hook(f::Function) = push!(preexecute_hooks, f)
194-
pop_preexecute_hook(f::Function) = splice!(preexecute_hooks, findfirst(pretexecute_hooks, f))
194+
pop_preexecute_hook(f::Function) = splice!(preexecute_hooks, findfirst(preexecute_hooks, f))
195195

196196
const postexecute_hooks = Function[]
197197
push_postexecute_hook(f::Function) = push!(postexecute_hooks, f)

0 commit comments

Comments
 (0)