Skip to content

Commit

Permalink
fix: proper display of go code in codingstyle doc (#4667)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinconic authored May 13, 2024
1 parent 52c2475 commit 0aa49fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CODINGSTYLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,18 +189,22 @@ Name tests with a compact name that reflects their scenario. Don't try to specif
<thead><tr><th>Bad</th><th>Good</th></tr></thead>
<tbody>
<tr><td>

```go
func TestSomethingBySettingVarToFive(t *testing.T) {
...
}
```

</td><td>

```go
// TestSomething tests that something works correctly by doing this and that.
func TestSomething(t *testing.T) {
...
}
```

</td>
</td></tr>
</tbody></table>
Expand Down

0 comments on commit 0aa49fb

Please sign in to comment.