You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-11-29 16:57:35 +02:00
docs(style): Add guideline for code block annotations (#2920)
This commit is contained in:
6
STYLE.md
6
STYLE.md
@@ -161,6 +161,12 @@ Contributors should design their slides with this interactivity in mind. The
|
||||
initial state of the code should be a good starting point for a live
|
||||
demonstration.
|
||||
|
||||
#### Code Annotations
|
||||
|
||||
Use the `ignore` annotation for code snippets that are not meant to be complete,
|
||||
self-contained programs. Use `compile_fail` only when the goal is to demonstrate
|
||||
a specific compiler error that is itself the lesson.
|
||||
|
||||
### Language and Tone
|
||||
|
||||
The courses are written in American English, so write "initialize", not
|
||||
|
||||
Reference in New Issue
Block a user