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

runtime: comment in map.go misspells loadFactorDen variable name #38174

Closed
maronghe opened this issue Mar 31, 2020 · 4 comments
Closed

runtime: comment in map.go misspells loadFactorDen variable name #38174

maronghe opened this issue Mar 31, 2020 · 4 comments
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@maronghe
Copy link
Contributor

maronghe commented Mar 31, 2020

What version of Go are you using (go version)?

$ go version
go version go1.14 darwin/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/logan/Library/Caches/go-build"
GOENV="/Users/logan/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/logan/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.14/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.14/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/wx/ld5h9gvx15gfqnnsvfs_g3t40000gn/T/go-build945589872=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

May this a small issue for go doc. I found that in the map.go src/runtime/map.go
For this one Represent as loadFactorNum/loadFactDen, to allow integer math. I can not find the loadFactDen in this file. We all know that it is the loadFactorDen. But for a preciseness team, I think we are looking for the best doc above other language. So I kindly hope to change loadFactDen to loadFactorDen . So can I create a Pull Request in the Go code review ?

What did you expect to see?

Represent as loadFactorNum/loadFactDen, to allow integer math

What did you see instead?

Represent as loadFactorNum/loadFactorDen, to allow integer math

@maronghe maronghe changed the title omitted loadFactorDen doc Doc for map.go : omitted loadFactorDen doc Mar 31, 2020
@ALTree
Copy link
Member

ALTree commented Mar 31, 2020

Hi,

you mean just updating the comment at line 69 to spell the variable name "loadFactorDen" (which is the correct name the variable has) instead of "loadFactDen"? Yeah sure. Please send a change.

@ALTree ALTree changed the title Doc for map.go : omitted loadFactorDen doc runtime: comment in map.go misspells loadFactorDen variable name Mar 31, 2020
@ALTree ALTree added the NeedsFix The path to resolution is known, but the work has not been done. label Mar 31, 2020
@ALTree ALTree added this to the Unplanned milestone Mar 31, 2020
@maronghe
Copy link
Contributor Author

maronghe commented Mar 31, 2020

Hi,

you mean just updating the comment at line 69 to spell the variable name "loadFactorDen" (which is the correct name the variable has) instead of "loadFactDen"? Yeah sure. Please send a change.

Hi @ALTree , Thank you for your replying.
I am so honor to become a contributor. But I'm in China. But When I try to commit a change and execute

git clone https://go.googlesource.com/go && (cd go && f=`git rev-parse --git-dir`/hooks/commit-msg ; mkdir -p $(dirname $f) ; curl -Lo $f https://gerrit-review.googlesource.com/tools/hooks/commit-msg ; chmod +x $f)

It returns

fatal: unable to access 'https://go.googlesource.com/go/': Failed to connect to go.googlesource.com port 443: Operation timed out

So I need some time to resolve it.
Perhaps It may be all the China Contributors' the problem we are facing.
So I will update change after resolved it. For the above time out problem.

Does anyone know how to resolve it?

@ALTree
Copy link
Member

ALTree commented Mar 31, 2020

If go.googlesource.com/go is blocked from your location and you're familiar with the github workflow, you could try sending your change request via github.

See: https://golang.org/doc/contribute.html#sending_a_change_github

@gopherbot
Copy link

Change https://golang.org/cl/226758 mentions this issue: runtime: comment in map.go misspells loadFactorDen variable name

@golang golang locked and limited conversation to collaborators Apr 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants