book: there are 4 special sections
This commit is contained in:
parent
1671b9baec
commit
f8158122c5
1 changed files with 2 additions and 2 deletions
|
@ -107,7 +107,7 @@ we could have added more explanation in a new paragraph.
|
||||||
```
|
```
|
||||||
|
|
||||||
Next, are special sections. These are indicated with a header, `#`. There
|
Next, are special sections. These are indicated with a header, `#`. There
|
||||||
are three kinds of headers that are commonly used. They aren't special syntax,
|
are four kinds of headers that are commonly used. They aren't special syntax,
|
||||||
just convention, for now.
|
just convention, for now.
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
|
@ -149,7 +149,7 @@ responsible for upholding.
|
||||||
# fn foo() {}
|
# fn foo() {}
|
||||||
```
|
```
|
||||||
|
|
||||||
Third, `Examples`. Include one or more examples of using your function or
|
Fourth, `Examples`. Include one or more examples of using your function or
|
||||||
method, and your users will love you for it. These examples go inside of
|
method, and your users will love you for it. These examples go inside of
|
||||||
code block annotations, which we'll talk about in a moment, and can have
|
code block annotations, which we'll talk about in a moment, and can have
|
||||||
more than one section:
|
more than one section:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue