Skip to content

Fix ArrayStack.Pop documentation#1099

Merged
Headline merged 1 commit intoalliedmodders:masterfrom
FortyTwoFortyTwo:stack-doc
Nov 13, 2019
Merged

Fix ArrayStack.Pop documentation#1099
Headline merged 1 commit intoalliedmodders:masterfrom
FortyTwoFortyTwo:stack-doc

Conversation

@FortyTwoFortyTwo
Copy link
Contributor

PopStackCell works differently to ArrayStack.Pop with same (incorrect) return documentation.
PopStackCell uses 2nd param to store value of the stack popped, returning false/true if stack if empty or not.
ArrayStack.Pop returns value of the stack popped, throws an error if stack is empty.

Also fixed ArrayStack.PopString with oaram while i'm at it. I'm not so great at english, so please do tell me if there a better wording for return documentation, thanks.

Copy link
Member

@Headline Headline left a comment

Choose a reason for hiding this comment

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

Thanks for this fix!

@Headline Headline merged commit 351e406 into alliedmodders:master Nov 13, 2019
@FortyTwoFortyTwo FortyTwoFortyTwo deleted the stack-doc branch November 13, 2019 11:00
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