pub fn verify_first_char(first_char: &char)
Expand description

! This module contains utilities for the readers module. Verifies that the first character of the file is a ‘[’.

Arguments

  • first_char - The first character of the file.

Panics

  • If the first character of the file is not a ‘[’.

Examples

use jsonl_converter::readers::utils::verify_first_char;

let first_char = '[';
verify_first_char(&first_char);