Change unformat_init_string API in doc to match code

Signed-off-by: hemant_mnkcg <hemant@mnkcg.com>
Change-Id: I4ec487054f928d52fe06d530df095b30edf66ae5
This commit is contained in:
hemant_mnkcg
2021-01-19 14:20:04 -05:00
committed by Dave Wallace
parent d6361c7b89
commit 27df797978

View File

@ -438,8 +438,9 @@ follows:
```c
unformat_input_t input;
u8 *s = "<some-C-string>";
unformat_init_string (&input, "<some-C-string>");
unformat_init_string (&input, (char *) s, strlen((char *) s));
/* or */
unformat_init_vector (&input, <u8-vector>);
```