Skip to content

Commit 50c965a

Browse files
committed
Use ``` notation for doc comment to get around rustdoc bug.
servo/servo#9704 rust-lang/rust#12834
1 parent 504e1ca commit 50c965a

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

src/batch_builder.rs

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,29 +1168,32 @@ impl<'a> BatchBuilder<'a> {
11681168
/// The following diagram attempts to explain the parameters to this function. It's an enlarged
11691169
/// version of a border corner that looks like this:
11701170
///
1171-
/// ╭─
1172-
/// │
1171+
/// ```
1172+
/// ╭─
1173+
/// │
1174+
/// ```
11731175
///
11741176
/// The parameters are as follows:
11751177
///
1176-
/// ⤹ corner_bounds.origin
1177-
/// ∙┈┈┈┈┈┬┈┈┈┈┈┬┈┈┈┈┈
1178-
/// ┊ ╱ ┊ ┊
1179-
/// ┊ ╱ ┊ ┊
1180-
/// ┊ ╱╲ ┊ ←─┼── color1
1181-
/// ┊╱ ╲ ┊ ┊
1182-
/// ┊ ╲┊ ┊
1183-
/// ├┈┈┈┈┈∙←────┼── radius_extent
1184-
/// ┊ ┊╲ ┊
1185-
/// ┊ ┊ ╲ ┊
1186-
/// ┊ ┊ ╲ ┊
1187-
/// ┊ ↑ ┊ ╲ ┊
1188-
/// ┊ │ ┊ ╲┊
1189-
/// ├┈┈┼┈┈┴┈┈┈┈┈∙┈┈┈┈┈
1190-
/// ┊ │ ┊↖︎
1191-
/// ┊ ┊ corner_bounds.bottom_right()
1192-
/// ┊color0 ┊
1193-
///
1178+
/// ```
1179+
/// ⤹ corner_bounds.origin
1180+
/// ∙┈┈┈┈┈┬┈┈┈┈┈┬┈┈┈┈┈
1181+
/// ┊ ╱ ┊ ┊
1182+
/// ┊ ╱ ┊ ┊
1183+
/// ┊ ╱╲ ┊ ←─┼── color1
1184+
/// ┊╱ ╲ ┊ ┊
1185+
/// ┊ ╲┊ ┊
1186+
/// ├┈┈┈┈┈∙←────┼── radius_extent
1187+
/// ┊ ┊╲ ┊
1188+
/// ┊ ┊ ╲ ┊
1189+
/// ┊ ┊ ╲ ┊
1190+
/// ┊ ↑ ┊ ╲ ┊
1191+
/// ┊ │ ┊ ╲┊
1192+
/// ├┈┈┼┈┈┴┈┈┈┈┈∙┈┈┈┈┈
1193+
/// ┊ │ ┊↖︎
1194+
/// ┊ ┊ corner_bounds.bottom_right()
1195+
/// ┊color0 ┊
1196+
/// ```
11941197
fn add_border_corner(&mut self,
11951198
border_style: BorderStyle,
11961199
corner_bounds: &Rect<f32>,

0 commit comments

Comments
 (0)