Skip to content

Commit e0b46e0

Browse files
committed
Fix typo
1 parent 585f4eb commit e0b46e0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/varnamedvector.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const CHECK_CONSISENCEY_DEFAULT = true
1+
const CHECK_CONSISTENCY_DEFAULT = true
22

33
"""
44
VarNamedVector
@@ -192,7 +192,7 @@ struct VarNamedVector{
192192
transforms::TTrans,
193193
is_unconstrained=fill!(BitVector(undef, length(varnames)), 0),
194194
num_inactive=OrderedDict{Int,Int}();
195-
check_consistency::Bool=CHECK_CONSISENCEY_DEFAULT,
195+
check_consistency::Bool=CHECK_CONSISTENCY_DEFAULT,
196196
) where {K,V,TVN<:AbstractVector{K},TVal<:AbstractVector{V},TTrans<:AbstractVector}
197197
if check_consistency
198198
if length(varnames) != length(ranges) ||
@@ -281,13 +281,13 @@ end
281281
# making that change here opens some other cans of worms related to how VarInfo uses
282282
# BangBang, that I don't want to deal with right now.
283283
VarNamedVector() = VarNamedVector{VarName,Real}()
284-
function VarNamedVector(xs::Pair...; check_consistency=CHECK_CONSISENCEY_DEFAULT)
284+
function VarNamedVector(xs::Pair...; check_consistency=CHECK_CONSISTENCY_DEFAULT)
285285
return VarNamedVector(OrderedDict(xs...); check_consistency=check_consistency)
286286
end
287-
function VarNamedVector(x::AbstractDict; check_consistency=CHECK_CONSISENCEY_DEFAULT)
287+
function VarNamedVector(x::AbstractDict; check_consistency=CHECK_CONSISTENCY_DEFAULT)
288288
return VarNamedVector(keys(x), values(x); check_consistency=check_consistency)
289289
end
290-
function VarNamedVector(varnames, vals; check_consistency=CHECK_CONSISENCEY_DEFAULT)
290+
function VarNamedVector(varnames, vals; check_consistency=CHECK_CONSISTENCY_DEFAULT)
291291
return VarNamedVector(
292292
collect_maybe(varnames), collect_maybe(vals); check_consistency=check_consistency
293293
)
@@ -296,7 +296,7 @@ function VarNamedVector(
296296
varnames::AbstractVector,
297297
orig_vals::AbstractVector,
298298
transforms=fill(identity, length(varnames));
299-
check_consistency=CHECK_CONSISENCEY_DEFAULT,
299+
check_consistency=CHECK_CONSISTENCY_DEFAULT,
300300
)
301301
# Convert `vals` into a vector of vectors.
302302
vals_vecs = map(tovec, orig_vals)

0 commit comments

Comments
 (0)