Skip to content

Commit

Permalink
Fix doc of dissolve.
Browse files Browse the repository at this point in the history
  • Loading branch information
waltergu committed Sep 11, 2024
1 parent 091e162 commit a15218f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Toolkit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,8 @@ dissolve(m, Val(name), f, args...; kwargs...)
Here, `name` is the name of the corresponding content of `m`.
Basically, the rule of how `f` operates on each field of `m` can be overridden by redefining the above `dissolve` function.
!!!note
The default `dissolve` function ignores the operation of function `f` and just return the content value of `m`.
!!! note
The default `dissolve` function ignores the operation of function `f` and just return the content value of `m`.
"""
@inline dissolve(m, f::Function=identity, args...; kwargs...) = dissolvehelper(m, Val(contentnames(typeof(m))), f, args...; kwargs...)
@inline @generated function dissolvehelper(m, ::Val{names}, f::Function, args...; kwargs...) where names
Expand Down

0 comments on commit a15218f

Please sign in to comment.