Skip to content

Commit d3bcb45

Browse files
committedFeb 28, 2018
Fix spelling in test for recovery of broken pipe (gin-gonic#1089)
1 parent 133a62d commit d3bcb45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎recovery_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func TestPanicWithAbort(t *testing.T) {
4646
}
4747

4848
// TestPanicWithBrokenPipe asserts that recovery specifically handles
49-
// writting responses to broken pipes
49+
// writing responses to broken pipes
5050
func TestPanicWithBrokenPipe(t *testing.T) {
5151
const expectCode = 204
5252

@@ -63,7 +63,7 @@ func TestPanicWithBrokenPipe(t *testing.T) {
6363
router := New()
6464
router.Use(RecoveryWithWriter(&buf))
6565
router.GET("/recovery", func(c *Context) {
66-
// Start writting response
66+
// Start writing response
6767
c.Header("X-Test", "Value")
6868
c.Status(expectCode)
6969

0 commit comments

Comments
 (0)