Skip to content

Commit

Permalink
Add docstring for InteractiveUtils module (JuliaLang#53206)
Browse files Browse the repository at this point in the history
Handles the `InteractiveUtils` part of
JuliaLang#52725.

cc @stevengj
  • Loading branch information
lgoettgens authored Feb 8, 2024
1 parent e68e432 commit ebe947e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion stdlib/InteractiveUtils/docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ EditURL = "https://github.com/JuliaLang/julia/blob/master/stdlib/InteractiveUtil

# [Interactive Utilities](@id man-interactive-utils)

This module is intended for interactive work. It is loaded automatically in [interactive mode](@ref command-line-interface).
The `InteractiveUtils` module provides utilities for interactive use of Julia,
such as code introspection and clipboard access.
It is intended for interactive work and is loaded automatically in [interactive mode](@ref command-line-interface).

```@docs
InteractiveUtils.apropos
Expand Down
5 changes: 5 additions & 0 deletions stdlib/InteractiveUtils/src/InteractiveUtils.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# This file is a part of Julia. License is MIT: https://julialang.org/license

"""
The `InteractiveUtils` module provides utilities for interactive use of Julia,
such as code introspection and clipboard access.
It is intended for interactive work and is loaded automatically in interactive mode.
"""
module InteractiveUtils

Base.Experimental.@optlevel 1
Expand Down
4 changes: 1 addition & 3 deletions stdlib/InteractiveUtils/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,5 @@ end
@test Base.infer_effects(sin, (Int,)) == InteractiveUtils.@infer_effects sin(42)

@testset "Docstrings" begin
undoc = Docs.undocumented_names(InteractiveUtils)
@test_broken isempty(undoc)
@test undoc == [:InteractiveUtils]
@test isempty(Docs.undocumented_names(InteractiveUtils))
end

0 comments on commit ebe947e

Please sign in to comment.