Skip to content

Commit dceaa19

Browse files
Merge pull request #2135 from CliMA/ck/doc_fixes
Fix some DebugOnly docs
2 parents 86bdcf3 + d568895 commit dceaa19

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

src/DebugOnly/DebugOnly.jl

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ function example_debug_post_op_callback(result, args...; kwargs...)
4747
end
4848

4949
"""
50-
depth_limited_stack_trace([io::IO, ]st::Base.StackTraces.StackTrace; maxtypedepth=3)
50+
depth_limited_stack_trace(
51+
[io::IO, ]
52+
st::Base.StackTraces.StackTrace;
53+
maxtypedepth=3
54+
)
5155
5256
Given a stacktrace `st`, return a vector of strings containing the trace with
5357
depth-limited printing.
@@ -69,10 +73,14 @@ function type_depth_limit(io::IO, s::String; maxtypedepth::Union{Nothing, Int})
6973
end
7074

7175
"""
72-
depth_limited_stack_trace([io::IO, ]st::Base.StackTraces.StackTrace; maxtypedepth=3)
73-
74-
Given a stacktrace `st`, return a vector of strings containing the trace with
75-
depth-limited printing.
76+
print_depth_limited_stack_trace(
77+
[io::IO, ]
78+
st::Base.StackTraces.StackTrace;
79+
maxtypedepth=3
80+
)
81+
82+
Given a stacktrace `st`, print the stack trace with depth-limited types, given
83+
by `maxtypedepth`.
7684
"""
7785
print_depth_limited_stack_trace(
7886
st::Base.StackTraces.StackTrace;

0 commit comments

Comments
 (0)