@@ -392,6 +392,7 @@ impl TestGenerator {
392
392
/// ty.to_string()
393
393
/// }
394
394
/// });
395
+ /// ```
395
396
pub fn type_name < F > ( & mut self , f : F ) -> & mut Self
396
397
where
397
398
F : Fn ( & str , bool , bool ) -> String + ' static ,
@@ -418,6 +419,7 @@ impl TestGenerator {
418
419
/// cfg.field_name(|_s, field| {
419
420
/// field.replace("foo", "bar")
420
421
/// });
422
+ /// ```
421
423
pub fn field_name < F > ( & mut self , f : F ) -> & mut Self
422
424
where
423
425
F : Fn ( & str , & str ) -> String + ' static ,
@@ -493,6 +495,7 @@ impl TestGenerator {
493
495
/// cfg.const_cname(|c| {
494
496
/// c.replace("FOO", "foo")
495
497
/// });
498
+ /// ```
496
499
pub fn const_cname < F > ( & mut self , f : F ) -> & mut Self
497
500
where
498
501
F : Fn ( & str ) -> String + ' static ,
@@ -518,6 +521,7 @@ impl TestGenerator {
518
521
/// cfg.skip_field(|s, field| {
519
522
/// s == "foo_t" || (s == "bar_t" && field == "bar")
520
523
/// });
524
+ /// ```
521
525
pub fn skip_field < F > ( & mut self , f : F ) -> & mut Self
522
526
where
523
527
F : Fn ( & str , & str ) -> bool + ' static ,
0 commit comments