在评论中结合第三人称单数的正确方法

Correct way of conjugating 3rd person singular in comments

我知道这是一个奇怪的问题,但最近我真的很困惑。

我一直在查看 github 中的一些存储库,这两种方法似乎都在实践中使用。那么,以这种模式写评论的英语语法正确方法是什么?

// create an integer to store the sum.
int i = 1 + 1;

// creates an integer to store the sum.
int i = 1 + 1;

Google's style guide建议使用第三人称而不是命令式。

Recommended: tasks.insert: Creates a new task on the specified task list.
Not recommended: tasks.insert: Create a new task on the specified task list.

您的问题可能与 this one 重复,所以请看一下。我想,最终,这取决于您的个人喜好,无论您使用命令式还是第三人称。这也反映在链接问题中的不同意见中。只要在你的 project/organization 中保持一致,一切都很好。