Skip to content

Commit 3327219

Browse files
committed
Make MetropolisHastings immutable
1 parent 228524e commit 3327219

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mh-core.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ used if `chain_type=Chains`.
4141
types are `chain_type=Chains` if `MCMCChains` is imported, or
4242
`chain_type=StructArray` if `StructArrays` is imported.
4343
"""
44-
mutable struct MetropolisHastings{D} <: Metropolis
45-
proposal :: D
44+
struct MetropolisHastings{D} <: Metropolis
45+
proposal::D
4646
end
4747

4848
StaticMH(d) = MetropolisHastings(StaticProposal(d))

0 commit comments

Comments
 (0)