mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-11-24 04:43:25 +03:00
Update updates.rst
This commit is contained in:
parent
52e6a4f1ed
commit
37af02eb2a
@ -554,7 +554,7 @@ field:
|
||||
constructor MkVect
|
||||
purpose : String
|
||||
length : Nat
|
||||
content : Vect len a
|
||||
content : Vect length a
|
||||
|
||||
Then, we can safely update the ``content``, provided we update the ``length``
|
||||
correspondingly:
|
||||
@ -562,7 +562,7 @@ correspondingly:
|
||||
.. code-block:: idris
|
||||
|
||||
addEntry : String -> WrapVect String -> WrapVect String
|
||||
addEntry val = record { len $= S,
|
||||
addEntry val = record { length $= S,
|
||||
content $= (val :: ) }
|
||||
|
||||
Generate definition
|
||||
|
Loading…
Reference in New Issue
Block a user