This may have been asked before, but I couldn't find it with my limited vocabulary of linguistic terms.
When writing a paragraph of running text that's broken up by a (code) example block or figure, how do I end the previous incomplete sentence and how do I continue the sentence?
I used to do it like this, with a colon and ellipsis:
For instance, the rewrite rule:
|[ i + j ]| -> |[ k ]| where <add>(i, j) => k
...expresses constant folding for addition.
Here's how the Rust programming language book does it, capitalizing the continued sentence:
You can also set another attribute based on a cfg variable with cfg_attr:
#[cfg_attr(a, b)]
Will be the same as #[b] if a is set by cfg attribute, and nothing otherwise.
Here's how the Stratego language manual does it:
For instance, the rewrite rule
|[ i + j ]| -> |[ k ]| where <add>(i, j) => k
expresses constant folding for addition.
What is the correct way to do this?