Please check if such topic is already part of our TODO list. If that's not the case, leave your request as a comment on that issue.
Please include the example id in the issue title, e.g. "variables/mut: concept
not clear". The example id is the relative path in the URL without the html
extension, e.g. URL: http://rustbyexample.com/variables/scope.html
-> id:
variables/scope
If its something simple like a typo, you can send a PR directly.
If you are submitting a correction/modification to an existing chapter, please start the commit message with the example id, e.g. "type/literals: fix typo".
Look for issues that have a C-* label:
-
C-new: A new chapter, there probably a lot to do here.
-
C-expand: Expand an existing chapter, new examples are needed.
-
C-split: The current chapter is too long, we want to split it into smaller chunks.
-
C-taken: Someone is already working in this issue, but if there is a lot of work to do, probably you can still help.
If an issue about the topic already exists, leave a comment there to let us know that you'll help. Otherwise, open a new issue mentioning what topic you plan to work on.
See the README for details about how the static site is generated.
-
Don't forget to register the example in the
examples/structure.json
file. -
Include the example id in the commit message header, e.g. for
literals/string
use the message "literals: add example about strings" -
Add a
Close #123
to the commit message, to close the issue that's been used to track your work.
- Lines should contain a maximum of 79 characters.
- Use reference style hyperlinks, for example:
Instead of:
[Goto my URL](http://www.myurl.com)
Use:
[Goto my URL][1]
(Bottom of page)
[1]: http://www.myurl.com
- Lines should contain a maximum of 79 characters.
- In comments, types, methods, macros and variables should be wrapped in
backticks, e.g.
`println!`