Skip to content

Commit c1e90f7

Browse files
mhaurupenelopeysm
andauthored
Apply suggestions from code review
Co-authored-by: Penelope Yong <[email protected]>
1 parent 2a4b874 commit c1e90f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/abstract_varinfo.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function getaccs end
139139
Return a boolean for whether `vi` has an accumulator with name `accname`.
140140
"""
141141
hasacc(vi::AbstractVarInfo, accname::Val) = haskey(getaccs(vi), accname)
142-
function hassacc(vi::AbstractVarInfo, accname::Symbol)
142+
function hasacc(vi::AbstractVarInfo, accname::Symbol)
143143
return error(
144144
"""
145145
The method hasacc(vi::AbstractVarInfo, accname::Symbol) does not exist. For type

src/accumulators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ An abstract type for accumulators.
55
66
An accumulator is an object that may change its value at every tilde_assume!! or
77
tilde_observe!! call based on the random variable in question. The obvious examples of
8-
accumulators are the log prior and log likelihood. Others examples might be a variable that
8+
accumulators are the log prior and log likelihood. Other examples might be a variable that
99
counts the number of observations in a trace, or a list of the names of random variables
1010
seen so far.
1111

0 commit comments

Comments
 (0)