Skip to content

Commit

Permalink
Small fixes in doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrebouchard committed Sep 7, 2023
1 parent a23db0d commit d93bb81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/mpi_utils/Entangler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ function next_transmit_index!(e::Entangler)::Int
global indices, here $(2 * e.load.n_global_indices))
is smaller than the transmit_counter_bound
(here $(e.transmit_counter_bound)).
""" maxlog=1 # TODO: double-check and write the proof
""" maxlog=1
end
end
result = e.n_transmits
Expand Down
6 changes: 3 additions & 3 deletions src/utils/Immutable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ struct Immutable{T}
1. Enclose large immutable data inside a `Immutable`.
Assume the type of data has well defined hash and ==.
Internally, we maintain an internal, global Dict indexed
Internally, we maintain a global Dict indexed
by hash(data) storing the data. This global Dict is
called `immutables`.
2. Use flush_immutable() to clear the global immutable state
Expand All @@ -32,9 +32,9 @@ struct Immutable{T}
[`deserialize_immutables!()`](@ref). This restores
`immutable`.
6. Finally, call `Serialization.deserialize()` as usual.
When an `Immutable` instances is being deserialize, we
When an `Immutable` instances is being deserialized, we
dispatch deserialization so that the data is retreived
from `immutable`.
from `immutables`.
"""
function Immutable(data::T) where {T}
key = hash(data)
Expand Down

0 comments on commit d93bb81

Please sign in to comment.