Skip to content

Commit 3d5ee07

Browse files
authored
Merge pull request rust-lang#39 from joshtriplett/code-block-terminators
2 parents 92f6c6a + ee603c0 commit 3d5ee07

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ctest/src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ impl TestGenerator {
392392
/// ty.to_string()
393393
/// }
394394
/// });
395+
/// ```
395396
pub fn type_name<F>(&mut self, f: F) -> &mut Self
396397
where
397398
F: Fn(&str, bool, bool) -> String + 'static,
@@ -418,6 +419,7 @@ impl TestGenerator {
418419
/// cfg.field_name(|_s, field| {
419420
/// field.replace("foo", "bar")
420421
/// });
422+
/// ```
421423
pub fn field_name<F>(&mut self, f: F) -> &mut Self
422424
where
423425
F: Fn(&str, &str) -> String + 'static,
@@ -493,6 +495,7 @@ impl TestGenerator {
493495
/// cfg.const_cname(|c| {
494496
/// c.replace("FOO", "foo")
495497
/// });
498+
/// ```
496499
pub fn const_cname<F>(&mut self, f: F) -> &mut Self
497500
where
498501
F: Fn(&str) -> String + 'static,
@@ -518,6 +521,7 @@ impl TestGenerator {
518521
/// cfg.skip_field(|s, field| {
519522
/// s == "foo_t" || (s == "bar_t" && field == "bar")
520523
/// });
524+
/// ```
521525
pub fn skip_field<F>(&mut self, f: F) -> &mut Self
522526
where
523527
F: Fn(&str, &str) -> bool + 'static,

0 commit comments

Comments
 (0)