From e7dc4a4abfadb7071776e2303e7e4f95c782d3f2 Mon Sep 17 00:00:00 2001 From: Lanting Guo Date: Fri, 29 Apr 2016 14:59:45 +0800 Subject: [PATCH] Fix an error in stacktraces.rst (#16115) Function `stacktrace` returned 4 vectors not 3. --- doc/manual/stacktraces.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/manual/stacktraces.rst b/doc/manual/stacktraces.rst index 878b2a40af5ac..312376674d67d 100644 --- a/doc/manual/stacktraces.rst +++ b/doc/manual/stacktraces.rst @@ -219,7 +219,7 @@ A call to :func:`backtrace` returns a vector of ``Ptr{Void}``, which may then be [inlined code from REPL.jl:3] eval_user_input at REPL.jl:62 [inlined code from REPL.jl:92] anonymous at task.jl:63 -Notice that the vector returned by :func:`backtrace` had 15 pointers, while the vector returned by :func:`stacktrace` only has 3. This is because, by default, :func:`stacktrace` removes any lower-level C functions from the stack. If you want to include stack frames from C calls, you can do it like this:: +Notice that the vector returned by :func:`backtrace` had 15 pointers, while the vector returned by :func:`stacktrace` only has 4. This is because, by default, :func:`stacktrace` removes any lower-level C functions from the stack. If you want to include stack frames from C calls, you can do it like this:: julia> stacktrace(stack, true) 15-element Array{StackFrame,1}: