added caption for each example

This commit is contained in:
Christian Bräunlich 2022-05-05 16:16:27 +00:00
parent 5652ea8c5d
commit 6162a121be
5 changed files with 48 additions and 24 deletions

View file

@ -10,26 +10,30 @@ _Created by Microsoft, Described by waldo_
A line of code should not have more than one statement.
## Bad code
## Example 1
### Bad code
```al
if OppEntry.Find('-') then exit;
```
## Good code
### Good code
```al
if OppEntry.Find('-') then
exit;
```
## Bad code
## Example 2
### Bad code
```al
TotalCost += Cost; TotalAmt += Amt;
```
## Good code
### Good code
```al
TotalCost += Cost;