File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,3 +3,5 @@ language: go
33go :
44 - " 1.8.x"
55 - " 1.10.x"
6+ - " 1.13.x"
7+ - " 1.14.x"
Original file line number Diff line number Diff line change 22
33package errors
44
5- // Is detects whether the error is equal to a given error. Errors // Is detects whether the error is equal to a given error. Errors
6- // are considered equal by this function if they are the same object, // are considered equal by this function if they are matched by errors.Is
7- // or if they both contain the same error inside an errors.Error. // or if their contained errors are matched through errors.Is
5+ // Is detects whether the error is equal to a given error. Errors
6+ // are considered equal by this function if they are the same object,
7+ // or if they both contain the same error inside an errors.Error.
88func Is (e error , original error ) bool {
99 if e == original {
1010 return true
You can’t perform that action at this time.
0 commit comments