Skip to content

Commit

Permalink
Add some docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Sep 20, 2018
1 parent a9f0b04 commit afee274
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/history.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ end

const history_provider = Ref{REPLHistoryProvider}()

"""
load_history_provider() :: REPLHistoryProvider
"""
function load_history_provider()
if !isdefined(history_provider, 1)
history_provider[] = REPLHistoryProvider(Dict())
Expand All @@ -44,6 +47,9 @@ function load_history_provider()
return hp
end

"""
get_history_provider() :: REPLHistoryProvider
"""
function get_history_provider()
try
return Base.active_repl.interface.modes[1].hist
Expand Down

0 comments on commit afee274

Please sign in to comment.