Update updates.rst

This commit is contained in:
GhiOm 2020-02-27 12:51:11 +01:00 committed by GitHub
parent 52e6a4f1ed
commit 37af02eb2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -554,7 +554,7 @@ field:
constructor MkVect constructor MkVect
purpose : String purpose : String
length : Nat length : Nat
content : Vect len a content : Vect length a
Then, we can safely update the ``content``, provided we update the ``length`` Then, we can safely update the ``content``, provided we update the ``length``
correspondingly: correspondingly:
@ -562,7 +562,7 @@ correspondingly:
.. code-block:: idris .. code-block:: idris
addEntry : String -> WrapVect String -> WrapVect String addEntry : String -> WrapVect String -> WrapVect String
addEntry val = record { len $= S, addEntry val = record { length $= S,
content $= (val :: ) } content $= (val :: ) }
Generate definition Generate definition