Skip to content

Commit

Permalink
Merge pull request #1536 from GaloisInc/doc_ref_fixes
Browse files Browse the repository at this point in the history
Fix doc ref in CHANGES and use better wording.
  • Loading branch information
kquick authored Jun 28, 2023
2 parents e0ae37a + b1910c8 commit 9cd829e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@

* Declarations may now use *numeric constraint guards*. This is a feature
that allows a function to behave differently depending on its numeric
type parameters. See the [manual section](https://galoisinc.github.io/cryptol/master/BasicSyntax.html#numeric-constraint-guards))
type parameters. See this [manual section](https://galoisinc.github.io/cryptol/master/BasicSyntax.html#numeric-constraint-guards)
for more information.

* The foreign function interface (FFI) has been added, which allows Cryptol to
call functions written in C. See the [manual section](https://galoisinc.github.io/cryptol/master/FFI.html)
call functions written in C. See this [manual section](https://galoisinc.github.io/cryptol/master/FFI.html)
for more information.

* The unary `-` operator now has the same precedence as binary `-`, meaning
Expand Down
6 changes: 3 additions & 3 deletions docs/RefMan/Modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ Module may be declared within other modules, using the ``submodule`` keword.
Submodules may refer to names in their enclosing scope.
Declarations in a sub-module will shadow names in the outer scope.

Declarations in a submdule may be imported with ``import submodule``,
Declarations in a submodule may be imported with ``import submodule``,
which works just like an ordinary import except that ``X`` refers
to the name of a submodule.

Expand Down Expand Up @@ -300,7 +300,7 @@ each locally defined submodules.
z = 2 * N::y
``N::y`` works in the previous example because Cryptol added
an implicit import ``import submoulde N as N``.
an implicit import ``import submodule N as N``.


Managing Module Names
Expand All @@ -313,7 +313,7 @@ containing module, and must be imported before they can be used.
Thus, to use a submodule defined in top-level module ``A`` into
another top-level module ``B`` requires two steps:

1. First we need to import ``A`` to bring the name of the submodule in scope
1. First we need to import ``A`` to bring the name of the submodule in scope,
2. Then we need to import the submodule to bring the names defined in it in scope.

.. code-block:: cryptol
Expand Down

0 comments on commit 9cd829e

Please sign in to comment.