Skip to content

Commit e1076dd

Browse files
Update faq.md (#38600)
Changed reference to gc to fully qualified (GC.gc()), as running `gc()` in a fresh julia session will not work.
1 parent 1f70c06 commit e1076dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/manual/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ session (technically, in module `Main`), it is always present.
2828
If memory usage is your concern, you can always replace objects with ones that consume less memory.
2929
For example, if `A` is a gigabyte-sized array that you no longer need, you can free the memory
3030
with `A = nothing`. The memory will be released the next time the garbage collector runs; you can force
31-
this to happen with [`gc()`](@ref Base.GC.gc). Moreover, an attempt to use `A` will likely result in an error, because most methods are not defined on type `Nothing`.
31+
this to happen with [`GC.gc()`](@ref Base.GC.gc). Moreover, an attempt to use `A` will likely result in an error, because most methods are not defined on type `Nothing`.
3232

3333
### How can I modify the declaration of a type in my session?
3434

0 commit comments

Comments
 (0)