Skip to content

Commit 9e76142

Browse files
Insert blank line where necessary
Also some spacing cleanup
1 parent ffbb53d commit 9e76142

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

courses/ada_essentials/270_introduction_to_contracts/02-preconditions_and_postconditions.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,15 @@ Postcondition :ada:`'Old` Attribute
144144
Function Postcondition :ada:`'Result` Attribute
145145
-------------------------------------------------
146146

147-
* :ada:`function` result can be manipulated with :ada:`'Result`
147+
Function result can be manipulated with :ada:`'Result`
148148

149149
.. code:: Ada
150+
150151
function Greatest_Common_Denominator (A, B : Integer)
151152
return Integer with
152-
Pre => A > 0 and B > 0,
153-
Post => Is_GCD (A, B,
154-
Greatest_Common_Denominator'Result);
153+
Pre => A > 0 and B > 0,
154+
Post => Is_GCD (A, B,
155+
Greatest_Common_Denominator'Result);
155156
156157
------------------------------------------
157158
Preconditions and Postconditions Example

0 commit comments

Comments
 (0)