Repository: rust-bakery/nom (language: rust)

Issue:
Document improvement: length_value


## Prerequisites

Here are a few things you should provide to help me understand the issue:
- nom version : 6.2.1

There are two arguments, but only the first one was listed.





Discussion / hints:
I don't understand what you talk about.

Doc:

> Gets a number from the first parser, takes a subslice of the input of that size, then applies the second parser on that subslice. If the second parser returns Incomplete, length_value will return an error. [Source](https://docs.rs/nom/6.2.1/nom/multi/fn.length_value.html)

Fix patch:
diff --git a/src/multi/mod.rs b/src/multi/mod.rs
index 180692afa..5a7e948d9 100644
--- a/src/multi/mod.rs
+++ b/src/multi/mod.rs
@@ -890,6 +890,7 @@ where
 /// `length_value` will return an error.
 /// # Arguments
 /// * `f` The parser to apply.
+/// * `g` The parser to apply on the subslice.
 /// ```rust
 /// # #[macro_use] extern crate nom;
 /// # use nom::{Err, error::{Error, ErrorKind}, Needed, IResult};


Test patch: