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

翻译修正 #592

Merged
merged 2 commits into from
Mar 26, 2019
Merged

翻译修正 #592

merged 2 commits into from
Mar 26, 2019

Conversation

Respawnz
Copy link
Contributor

@Respawnz Respawnz commented Mar 25, 2019

原著:

A new value is put in the highest cell which is empty (contains 0), on top: this is called push.

原翻译:

push 将一个新值放到栈的最顶部一个非空(非零)的格子中。

仅此处“非空(非零)”有误。
其余改动出于通顺阅读之目的。

To get a value from the stack, take the highest value which is not 0: this is called pop.
So we can understand why a stack is called a Last In First Out (LIFO) structure.Define a new type Stack for this datastructure.

Make 2 methods Push and Pop. Make a String() method (for debugging purposes) which shows the content of the stack as: [0:i] [1:j] [2:k] [3:l]

 A new value is put in the highest cell which is empty (contains 0), on top: this is called push.
原文中的which此处可省略掉,译文更通顺
@unknwon
Copy link
Owner

unknwon commented Mar 26, 2019

感谢修正!

@unknwon unknwon merged commit 0f0d0b0 into unknwon:master Mar 26, 2019
mibesr pushed a commit to mibesr/the-way-to-go_ZH_CN that referenced this pull request Apr 28, 2019
* 翻译修正

 A new value is put in the highest cell which is empty (contains 0), on top: this is called push.

* Update 10.7.md

原文中的which此处可省略掉,译文更通顺
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.

2 participants