added caption for each example
This commit is contained in:
parent
5652ea8c5d
commit
6162a121be
5 changed files with 48 additions and 24 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue