Skip to content

Updated the usage description code snippet so that it actually ignore… - #53

Closed
dlochrie wants to merge 2 commits into
gorilla:masterfrom
dlochrie:master
Closed

dlochrie wants to merge 2 commits into
gorilla:masterfrom
dlochrie:master

Conversation

@dlochrie

@dlochrie dlochrie commented Sep 4, 2015

Copy link
Copy Markdown

…s the error (as demonstated here). Also made some minor grammar fixes, and updated docs so that they fit within the 80 character margin (as most of the doc does).

…s the error (as demonstated here: http://stackoverflow.com/a/21866122/1058612). Also made some minor grammar fixes, and updated docs so that they fit within the 80 character margin (as most of the doc does).
Comment thread doc.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should be the other way around: we should always check the error in example code and remove the 'we're ignoring...' text from the comment.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

That makes sense. The text has been reverted/updated.

@elithrar

elithrar commented Sep 4, 2015

Copy link
Copy Markdown
Contributor

Thanks for the PR. Have added a couple of comments and have updated my SO answer (the one you linked to) to explicitly check the error.

Example code should always check for errors as we need to set a good example of newcomers to the language.

…ting `map[string]interface{}` text as suggested.
@dlochrie

dlochrie commented Sep 5, 2015

Copy link
Copy Markdown
Author

Updated per comments.

@elithrar

elithrar commented Oct 3, 2015

Copy link
Copy Markdown
Contributor

Thanks again for this @dlochrie — forgot I hadn't merged this!

@elithrar elithrar closed this Oct 3, 2015
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