Merge pull request #11707 from ethereum/docs-clarify-optional-remapping-components

[Docs] Clarify optional parts in remappings
This commit is contained in:
chriseth 2021-08-02 12:58:56 +02:00 committed by GitHub
commit e9cab0ffc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -464,7 +464,8 @@ Here are the detailed rules governing the behaviour of remappings:
#. **Prefix cannot be empty but context and target are optional.**
If ``target`` is omitted, it defaults to the value of the ``prefix``.
- If ``target`` is the empty string, ``prefix`` is simply removed from import paths.
- Empty ``context`` means that the remapping applies to all imports in all source units.
.. index:: Remix IDE, file://