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

x/tour: moretypes: confusion between XOR and math.Pow #9700

Closed
fhs opened this issue Jan 27, 2015 · 2 comments
Closed

x/tour: moretypes: confusion between XOR and math.Pow #9700

fhs opened this issue Jan 27, 2015 · 2 comments

Comments

@fhs
Copy link
Contributor

fhs commented Jan 27, 2015

At the moretypes/14 page, x^y is used to mean exponentiation but the math package uses x**y. Also, the XOR version is prettier than the math.Pow version.

@rsc rsc added this to the Unplanned milestone Apr 10, 2015
@rsc rsc changed the title go-tour/moretypes: confusion between XOR and math.Pow x/tour: moretypes: confusion between XOR and math.Pow Apr 14, 2015
@rsc rsc modified the milestones: Unreleased, Unplanned Apr 14, 2015
@rsc rsc removed the repo-tour label Apr 14, 2015
@ALTree
Copy link
Member

ALTree commented Jul 2, 2015

Dup of #11310

@kytrinyx
Copy link
Contributor

kytrinyx commented Oct 8, 2015

I believe this is fixed in https://go-review.googlesource.com/#/c/11134/3/content/moretypes.article by removing the reference math.Pow() (so the reader is no longer directed to documentation that uses the x**y syntax).

@minux minux closed this as completed Oct 8, 2015
@golang golang locked and limited conversation to collaborators Oct 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants