on master help sign in
Merge pull request #2885 from DreamLinuxer/patch-1
2f5dd79Edwin Brady
docs/tutorial/typesfuns.rst+1−1
@@ -1045,7 +1045,7 @@ using natural numbers, the new value can be incremented using the
1045.. code-block:: idris
1045.. code-block:: idris
1046
1046
1047 addStudent : Person -> SizedClass n -> SizedClass (S n)
1047 addStudent : Person -> SizedClass n -> SizedClass (S n)
1048− addStudent p c = record { students = p :: students c } c
1048+ addStudent p c = SizedClassInfo (p :: students c) (className c)
1049
1049
1050.. _sect-more-expr:
1050.. _sect-more-expr:
1051
1051