Skip to content

Commit

Permalink
Mention require's case-sensitivity in documenation (#17249)
Browse files Browse the repository at this point in the history
Mention require's case-sensitivity in documentation
  • Loading branch information
sivapvarma authored and kshyatt committed Jul 3, 2016
1 parent 0e8df60 commit 9a66205
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion base/docs/helpdb/Base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,9 @@ This function is typically used to load library code, and is implicitly called b
load packages.
When searching for files, `require` first looks for package code under `Pkg.dir()`, then tries
paths in the global array `LOAD_PATH`.
paths in the global array `LOAD_PATH`. `require` is case-sensitive on all
platforms including those with case-insensitive filesystems like macOS and
Windows.
"""
require

Expand Down
3 changes: 1 addition & 2 deletions doc/stdlib/base.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Getting Around

Loads a source files, in the context of the ``Main`` module, on every active node, searching standard locations for files. ``require`` is considered a top-level operation, so it sets the current ``include`` path but does not use it to search for files (see help for ``include``\ ). This function is typically used to load library code, and is implicitly called by ``using`` to load packages.

When searching for files, ``require`` first looks for package code under ``Pkg.dir()``\ , then tries paths in the global array ``LOAD_PATH``\ .
When searching for files, ``require`` first looks for package code under ``Pkg.dir()``\ , then tries paths in the global array ``LOAD_PATH``\ .``require`` is case-sensitive on all platforms including those with case-insensitive filesystems like macOS and Windows.

.. function:: Base.compilecache(module::String)

Expand Down Expand Up @@ -1427,4 +1427,3 @@ Internals
.. Docstring generated from Julia source
Compile the given function ``f`` for the argument tuple (of types) ``args``\ , but do not execute it.

0 comments on commit 9a66205

Please sign in to comment.