Skip to content

Commit

Permalink
Add note on pragma version parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaversaccio authored Oct 5, 2023
1 parent 5bddf87 commit b7f20f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/structure-of-a-contract.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ As of 0.3.10, the recommended way to specify the version pragma is as follows:
#pragma version ^0.3.0
.. note::

Both pragma directive versions ``#pragma`` and ``# pragma`` are supported.

The following declaration is equivalent, and, prior to 0.3.10, was the only supported method to specify the compiler version:

.. code-block:: python
Expand Down

0 comments on commit b7f20f5

Please sign in to comment.