浏览代码

Add go 1.13,1.14 to travis

tfreville 5 年之前
父节点
当前提交
7da7452d47
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 2 0
      .travis.yml
  2. 3 3
      error_backward.go

+ 2 - 0
.travis.yml

@@ -3,3 +3,5 @@ language: go
 go:
   - "1.8.x"
   - "1.10.x"
+  - "1.13.x"
+  - "1.14.x"

+ 3 - 3
error_backward.go

@@ -2,9 +2,9 @@
 
 package errors
 
-// Is detects whether the error is equal to a given error. Errors	// Is detects whether the error is equal to a given error. Errors
-// 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
-// or if they both contain the same error inside an errors.Error.	// or if their contained errors are matched through errors.Is
+// Is detects whether the error is equal to a given error. Errors
+// are considered equal by this function if they are the same object,
+// or if they both contain the same error inside an errors.Error.
 func Is(e error, original error) bool {
 	if e == original {
 		return true