Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

优化翻译: Array 的构造函数说明 #34

Closed
wants to merge 1 commit into from
Closed

Conversation

cnfn
Copy link

@cnfn cnfn commented Sep 12, 2018

Array(size: Int, init: (Int) -> T) init 函数的入参是数组的索引, 出参是数组对应元素的初始值

Array(size: Int, init: (Int) -> T)  init 函数的入参是数组的索引, 出参是数组对应元素的初始值
@hltj
Copy link
Owner

hltj commented Sep 13, 2018

我觉得这里并没有那么难理解,尤其是下文示例中还有注释。

ps: 翻译的时候不要把两行合并为一行,这样不便于从英文站合并变更。其中的括号与逗号也应该都用全角的。

@hltj hltj closed this Sep 13, 2018
@imknown
Copy link

imknown commented Sep 13, 2018

不过 下面这个确实应该删掉, 看了原文, 并没有.

<!--
-->

@cnfn
Copy link
Author

cnfn commented Sep 13, 2018

我觉得这里并没有那么难理解,尤其是下文示例中还有注释。

ps: 翻译的时候不要把两行合并为一行,这样不便于从英文站合并变更。其中的括号与逗号也应该都用全角的。

注释 // 创建一个 Array<String> 初始化为 ["0", "1", "4", "9", "16"] 只是指出了输出结果, 没有解释入参的来源. 我看到的时候只能猜测是这样的, 找英文原文看了下才确定的.

因为不能给出更加恰当的翻译, 所以才额外加了那部分内容.

@hltj
Copy link
Owner

hltj commented Sep 14, 2018

不过 下面这个确实应该删掉, 看了原文, 并没有.

<!--
-->

这个是为了保持行级对应的同时,避免汉字间出现空格,参见开源文档翻译的质量保障实践

@imknown
Copy link

imknown commented Sep 14, 2018

@hltj 学到了 涨姿势了 🤣 哈哈 我也研究研究~

@imknown imknown mentioned this pull request Oct 12, 2018
hltj pushed a commit that referenced this pull request May 28, 2020
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