-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
spec: formatting of tables relies on fixed-width fonts #14234
Comments
Can you elaborate on what trouble you're having? It looks adequately table-aligned in my browser. I believe the intended way to interpret that table is the line:
Then the way to understand that is for a for-based range loop like
where v is of types |
CC @griesemer |
Do you have some Chrome extension modifying your content? Or did you override the browser's monospace to be a proportional font? |
Sorry about that! I should have known better: it's highly improbable that the spec is not flawless on golang.org... |
Reopening just in case this is worth discussing further. The Go spec is maintained in HTML (not Godoc), so we could reasonably use actual |
(you most probably asked only the core team, though in case not: I - as a non-representative, acme user - never align with spaces.) |
I agree that this should be formatted as an HTML table. I also think this is very low priority. |
|
On https://golang.org/ref/spec if you search for "array or slice" the table is not aligned as a table. I can't tell from this paragraph which is the 1st or the 2nd value in a range expression for different types.
(https://golang.org/doc/effective_go.html#for is clear on the range expression, though it's not the spec.)
The text was updated successfully, but these errors were encountered: