Skip to content

Commit

Permalink
Update NotificationCenter.jl
Browse files Browse the repository at this point in the history
Change variable name from `fnction` to `f`
  • Loading branch information
andrewwinters5000 authored Jun 26, 2023
1 parent 5a2a4aa commit d96bf86
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Misc/NotificationCenter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ HQMNotificationsON = true


"""
addObserver(observer::Any, note::String, fnction::Any)
addObserver(observer::Any, note::String, f::Any)
fnction is the function to be executed (called) when a
`f` is the function to be executed (called) when a
notification of name `note` is given.
The function called upon notification must have the signature
fnction(observer, sender, args...)
f(observer, sender, args...)
"""
function addObserver(observer::Any, note::String, fnction::Any)
function addObserver(observer::Any, note::String, f::Any)

noteObj = HQMNotificationObject(observer,fnction)
noteObj = HQMNotificationObject(observer,f)
if !haskey(HQMNotificationCenter,note)
HQMNotificationCenter[note] = HQMNotificationObject[]
end
Expand Down

0 comments on commit d96bf86

Please sign in to comment.