Skip to content

Conversation

@jroam
Copy link
Member

@jroam jroam commented Jul 28, 2021

No description provided.

}

// See New.
// NewArray See New.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请给定完整的描述。

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在goland新的规范中,要把函数名写在注释之前,下图是没有写上函数名的提示:
image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我的意思是NewArray See New.这句注释不通顺,需要给定完整的方法说明,或者友好地提示开发者去哪里查看使用说明。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jroam 比如注释改为NewArray is alias of New, please see New. 都比NewArray See New要好,我是这个意思。

}

// See PushRight.
// Append See PushRight.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请给定完整的描述。

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同第一处说明

return false
}
return true
return a.array[i] > a.array[j]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a.array[i] >= a.array[j]

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是的,应该是>=

}

// See PushRight.
// Append See PushRight.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请给定完整的描述。

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同第一处描述

}

// See New.
// NewArray See New.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我的意思是NewArray See New.这句注释不通顺,需要给定完整的方法说明,或者友好地提示开发者去哪里查看使用说明。

@jroam
Copy link
Member Author

jroam commented Aug 3, 2021

在gf中,很多的注释都是这样写的,所以应该保持一样的风格:
image

}

// See New.
// NewArray See New.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jroam 比如注释改为NewArray is alias of New, please see New. 都比NewArray See New要好,我是这个意思。

@codecov-commenter
Copy link

Codecov Report

Merging #1361 (537cbf9) into develop (30dbccf) will decrease coverage by 0.11%.
The diff coverage is 52.21%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1361      +/-   ##
===========================================
- Coverage    70.78%   70.66%   -0.12%     
===========================================
  Files          372      376       +4     
  Lines        32046    32228     +182     
===========================================
+ Hits         22683    22774      +91     
- Misses        7770     7840      +70     
- Partials      1593     1614      +21     
Impacted Files Coverage Δ
container/gvar/gvar_map.go 11.76% <ø> (ø)
database/gdb/gdb_driver_mssql.go 0.00% <0.00%> (ø)
database/gdb/gdb_driver_mysql.go 69.41% <0.00%> (+2.35%) ⬆️
database/gdb/gdb_driver_oracle.go 17.78% <0.00%> (-0.44%) ⬇️
database/gdb/gdb_driver_pgsql.go 0.00% <0.00%> (ø)
database/gdb/gdb_driver_sqlite.go 0.00% <0.00%> (ø)
database/gdb/gdb_model_delete.go 91.30% <0.00%> (ø)
database/gdb/gdb_model_insert.go 66.66% <0.00%> (-2.22%) ⬇️
database/gdb/gdb_model_update.go 78.12% <0.00%> (ø)
database/gdb/gdb_result.go 35.00% <ø> (ø)
... and 142 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ebe90dc...537cbf9. Read the comment docs.

@gqcn gqcn merged commit f22aa1b into gogf:develop Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants