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

Fix formatting and errors in std::getopts example. #5308

Closed

Conversation

wanderview
Copy link
Contributor

There were three issues effecting the example in the getopts rustdoc:

  1. The blockquote was incorrectly formatted. Fixed by switching to using
    an explicit markdown code section with ```.
  2. The fail fail_str(f) would not compile. Fixed by using fail!() instead
    of fail.
  3. The line matches.free[0] produced a compile error about moving from
    an immutable vector. Fix by using copy.

There were three issues effecting the example in the getopts rustdoc:

1. The blockquote was incorrectly formatted.  Fixed by switching to using
   an explicit markdown code section with ```.
2. The `fail fail_str(f)` would not compile.  Fixed by using `fail!()` instead
   of `fail`.
3. The line `matches.free[0]` produced a compile error about moving from
   an immutable vector.  Fix by using `copy`.
Previous year range of 2011-2013 was based on file creation date.  The
check_license python script, however, only accepts copyrights starting
in 2012 or later.
@wanderview
Copy link
Contributor Author

Sorry about the make check failure. I updated the copyright year as an after thought due to the request in CONTRIBUTING, but forgot to re-run the tests.

I'm running make check on a fixed version now.

I will commit the fix separately unless you would like me to rebase it into the previous commit. Not sure what that would do to bors.

bors added a commit that referenced this pull request Mar 11, 2013
There were three issues effecting the example in the getopts rustdoc:

1. The blockquote was incorrectly formatted.  Fixed by switching to using
   an explicit markdown code section with ```.
2. The `fail fail_str(f)` would not compile.  Fixed by using `fail!()` instead
   of `fail`.
3. The line `matches.free[0]` produced a compile error about moving from
   an immutable vector.  Fix by using `copy`.
@bors bors closed this Mar 11, 2013
@luqmana
Copy link
Member

luqmana commented Mar 11, 2013

Thanks!

bors added a commit to rust-lang-ci/rust that referenced this pull request May 2, 2020
Update Changelog

I also changed the formatting of the changelog for the beta changelog. I can also do this for all the previous releases, if this formatting gets accepted.

[Rendered](https://github.com/flip1995/rust-clippy/blob/changelog/CHANGELOG.md)

r? @Manishearth

changelog: none
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.

4 participants