Skip to content

Commit 1fc8290

Browse files
committed
Fix return value from Base.setindex!
1 parent 6a75e3c commit 1fc8290

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/write_once_read_many.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Base.get(w::WriteOnceReadMany{<:Dict}, a, b) = get(w._raw_data, a, b)
2525
function Base.setindex!(w::DynamicQuantities.WriteOnceReadMany{<:Dict}, i, s::Symbol)
2626
haskey(w._raw_data, s) && throw("Unit $s already exists at index $(w[s])")
2727
setindex!(w._raw_data, i, s)
28+
return w
2829
end
2930

3031
Base.iterate(w::WriteOnceReadMany) = iterate(w._raw_data)

0 commit comments

Comments
 (0)