Skip to content

Commit 5bf8848

Browse files
hadronizedGeal
authored andcommitted
Fix incorrect types in documentation of named! and named_args!.
1 parent 8829a2a commit 5bf8848

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/combinator/macros.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@
7979
/// # use nom::{named, tag};
8080
/// named!(my_function<&[u8], &[u8]>, tag!("abcd"));
8181
/// ```
82-
/// This one will have &[u8] as input type, &[u8] as output type:
82+
/// This one will have `&[u8]` as input type, `&[u8]` as output type:
8383
/// ```
8484
/// # use nom::{named, tag};
8585
/// named!(my_function, tag!("abcd"));
8686
/// ```
87-
/// Will use &[u8] as output type:
87+
/// Will use `&[u8]` as output type:
8888
/// ```
8989
/// # use nom::{named, tag};
9090
/// named!(my_function<&[u8]>, tag!("abcd"));
@@ -134,7 +134,7 @@ macro_rules! named (
134134
/// Makes a function from a parser combination with arguments.
135135
///
136136
/// ```ignore
137-
/// //takes `&[u8]` as input
137+
/// //takes [`&[u8]`] as input
138138
/// named_args!(tagged(open_tag: &[u8], close_tag: &[u8])<&str>,
139139
/// delimited!(tag!(open_tag), map_res!(take!(4), str::from_utf8), tag!(close_tag))
140140
/// );

0 commit comments

Comments
 (0)