Skip to content

Commit

Permalink
docs: correct example for disable-next-line (foundry-rs#4429)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRBerg authored Feb 26, 2023
1 parent 0cc1338 commit 0078471
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fmt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@ TODO: update ^

### Disable Line

The formatter can be disabled on specific lines by adding a comment `// forgefmt: disable-line`, like this:
The formatter can be disabled on specific lines by adding a comment `// forgefmt: disable-next-line`, like this:

```solidity
// forgefmt: disable-line
// forgefmt: disable-next-line
uint x = 100;
```

The comment can also be placed at the end of the line:
Alternatively, the comment can also be placed at the end of the line. In this case, you'd have to use `disable-line` instead:

```solidity
uint x = 100; // forgefmt: disable-line
Expand Down

0 comments on commit 0078471

Please sign in to comment.