diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2017-01-02 23:13:57 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2017-01-04 01:18:16 +0800 |
commit | 9128e73b03856c72e90c581cb36e931e971af29e (patch) | |
tree | 153ccc472a9bf7b3f95211a8cb8a4202f8ffb019 /docs/layout-of-source-files.rst | |
parent | 43d3f048e6df045697a3a77989c3e8a7f91603e9 (diff) | |
download | dexon-solidity-9128e73b03856c72e90c581cb36e931e971af29e.tar.gz dexon-solidity-9128e73b03856c72e90c581cb36e931e971af29e.tar.zst dexon-solidity-9128e73b03856c72e90c581cb36e931e971af29e.zip |
docs: clarify what are considered as absolute paths
Diffstat (limited to 'docs/layout-of-source-files.rst')
-rw-r--r-- | docs/layout-of-source-files.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/layout-of-source-files.rst b/docs/layout-of-source-files.rst index dff48be3..1e27b7c0 100644 --- a/docs/layout-of-source-files.rst +++ b/docs/layout-of-source-files.rst @@ -79,8 +79,9 @@ Paths ----- In the above, ``filename`` is always treated as a path with ``/`` as directory separator, -``.`` as the current and ``..`` as the parent directory. Path names that do not start -with ``.`` are treated as absolute paths. +``.`` as the current and ``..`` as the parent directory. When ``.`` or ``..`` is followed by a character except ``/``, +it is not considered as the current or the parent directory. +All path names are treated as absolute paths unless they start with the current ``.`` or the parent directory ``..``. To import a file ``x`` from the same directory as the current file, use ``import "./x" as x;``. If you use ``import "x" as x;`` instead, a different file could be referenced |