Skip to content

Commit 9eb25df

Browse files
thomas-fossatilestrrat
authored andcommitted
a couple of typos (#822)
1 parent 4e02ea5 commit 9eb25df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/02-jws.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ func ExampleJWS_VerifyWithKey() {
377377

378378
buf, err := jws.Verify([]byte(src), jws.WithKey(jwa.HS256, key))
379379
if err != nil {
380-
fmt.Printf("failed to sign payload: %s\n", err)
380+
fmt.Printf("failed to verify payload: %s\n", err)
381381
return
382382
}
383383
fmt.Printf("%s\n", buf)
@@ -480,7 +480,7 @@ func ExampleJWS_VerifyDetachedPayload() {
480480

481481
verified, err := jws.Verify([]byte(serialized), jws.WithKey(jwa.HS256, key), jws.WithDetachedPayload([]byte(payload)))
482482
if err != nil {
483-
fmt.Printf("failed to sign payload: %s\n", err)
483+
fmt.Printf("failed to verify payload: %s\n", err)
484484
return
485485
}
486486

0 commit comments

Comments
 (0)