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/website: Error in code block #57391

Closed
rajivharlalka opened this issue Dec 19, 2022 · 1 comment
Closed

x/website: Error in code block #57391

rajivharlalka opened this issue Dec 19, 2022 · 1 comment

Comments

@rajivharlalka
Copy link

What is the URL of the page with the issue?

https://go.dev/blog/defer-panic-and-recover

What is your user agent?

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.1462.46

Screenshot

image

What did you do?

The code block should return i instead of 1

What did you expect to see?

Incorrect code block, returns 1 instead of i based on the text above the code block

What did you see instead?

@gopherbot gopherbot added this to the Unreleased milestone Dec 19, 2022
@rajivharlalka rajivharlalka changed the title x/website: x/website: Error in code block Dec 19, 2022
@rajivharlalka
Copy link
Author

Sorry, found the mistake myself. The codeblock being correct returns i from the function defination itself. Closing the issue.

@golang golang locked and limited conversation to collaborators Dec 19, 2023
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

2 participants