Skip to content

Commit 24d693e

Browse files
committed
fix: fix invalid rustdoc code block attributes
1 parent 90aa462 commit 24d693e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ As a consequence, when calling another parsing function, either:
4141
4242
Examples:
4343
44-
```{rust,ignore}
44+
```rust,ignore
4545
// 'none' | <image>
4646
fn parse_background_image(context: &ParserContext, input: &mut Parser)
4747
-> Result<Option<Image>, ()> {
@@ -53,7 +53,7 @@ fn parse_background_image(context: &ParserContext, input: &mut Parser)
5353
}
5454
```
5555
56-
```{rust,ignore}
56+
```rust,ignore
5757
// [ <length> | <percentage> ] [ <length> | <percentage> ]?
5858
fn parse_border_spacing(_context: &ParserContext, input: &mut Parser)
5959
-> Result<(LengthOrPercentage, LengthOrPercentage), ()> {

src/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ impl BlockType {
295295
///
296296
/// The union of two sets can be obtained with the `|` operator. Example:
297297
///
298-
/// ```{rust,ignore}
298+
/// ```rust,ignore
299299
/// input.parse_until_before(Delimiter::CurlyBracketBlock | Delimiter::Semicolon)
300300
/// ```
301301
#[derive(Copy, Clone, PartialEq, Eq, Debug)]

src/serializer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ where
286286
///
287287
/// Typical usage:
288288
///
289-
/// ```{rust,ignore}
289+
/// ```rust,ignore
290290
/// fn write_foo<W>(foo: &Foo, dest: &mut W) -> fmt::Result where W: fmt::Write {
291291
/// dest.write_str("\"")?;
292292
/// {

0 commit comments

Comments
 (0)