aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/doc
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2017-02-04 15:31:14 +0100
committerRichard Carlsson <[email protected]>2017-02-08 13:07:42 +0100
commit1d886081027c4d4fcfbf7f73d4708694cad582f5 (patch)
tree804393c43aa36c5afcfd26ee949a6e54cfe04e26 /lib/stdlib/doc
parente381a8a0334b9a1556b9a7e97205734261e39ffa (diff)
downloadotp-1d886081027c4d4fcfbf7f73d4708694cad582f5.tar.gz
otp-1d886081027c4d4fcfbf7f73d4708694cad582f5.tar.bz2
otp-1d886081027c4d4fcfbf7f73d4708694cad582f5.zip
Deprecate filename:find_src/1/2
Diffstat (limited to 'lib/stdlib/doc')
-rw-r--r--lib/stdlib/doc/src/filename.xml10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/stdlib/doc/src/filename.xml b/lib/stdlib/doc/src/filename.xml
index 2a413835d0..7acef51ca1 100644
--- a/lib/stdlib/doc/src/filename.xml
+++ b/lib/stdlib/doc/src/filename.xml
@@ -356,10 +356,12 @@ true
<p>Finds the source filename and compiler options for a module.
The result can be fed to <seealso marker="compiler:compile#file/2">
<c>compile:file/2</c></seealso> to compile the file again.</p>
- <warning><p>It is not recommended to use this function. If possible,
- use the <seealso marker="beam_lib"><c>beam_lib(3)</c></seealso>
- module to extract the abstract code format from the Beam file and
- compile that instead.</p></warning>
+ <warning>
+ <p>This function is deprecated. Use <seealso marker="filelib#find_source/1">
+ <c>filelib:find_source/1</c></seealso> instead for finding source files.</p>
+ <p>If possible, use the <seealso marker="beam_lib"><c>beam_lib(3)</c></seealso>
+ module to extract the compiler options and the abstract code
+ format from the Beam file and compile that instead.</p></warning>
<p>Argument <c><anno>Beam</anno></c>, which can be a string or an atom,
specifies either the module name or the path to the source
code, with or without extension <c>".erl"</c>. In either