Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Rafael Schouten <[email protected]>
  • Loading branch information
MilesCranmer and rafaqz authored Jun 30, 2024
1 parent af4d916 commit 6c95d37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/documentation.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
function header(interface::Type{<:Interface})
function _help_header(interface::Type{<:Interface})
m_keys = mandatory_keys(interface)
o_keys = optional_keys(interface)
return "An Interfaces.jl `Interface` with mandatory components `$m_keys` and optional components `$o_keys`."
end

function extended_help(interface::Type{<:Interface})
function _extended_help(interface::Type{<:Interface})
comp = components(interface)

io_buf = IOBuffer()
Expand Down
4 changes: 2 additions & 2 deletions src/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ macro interface(interface::Symbol, type, components, description)
# Generate a docstring for the interface
let description=$description,
interfacesym=$(QuoteNode(interface)),
header=$Interfaces.header($interface),
extended_help=$Interfaces.extended_help($interface)
header=$Interfaces._help_header($interface),
extended_help=$Interfaces._extended_help($interface)
@doc """
$(" ") $interfacesym
Expand Down

0 comments on commit 6c95d37

Please sign in to comment.