/// Read file and normalize newlines.
///
/// `rustc` seems to always normalize `\r\n` newlines to `\n`:
///
/// ```
/// let s = "
/// ";
/// assert_eq!(s.as_bytes(), &[10]);
/// ```
///
/// so this should always be correct.
Read file and normalize newlines.



so this should always be correct.
Read file and normalize newlines . so this should always be correct .
pub fn read_text(path: &Path) -> String {
    fs::read_to_string(path)
        .unwrap_or_else(|_| panic!("File at {:?} should be valid", path))
        .replace("\r\n", "\n")
}
pub fn read_text ( path : & Path ) -> String { fs :: read_to_string ( path ) . unwrap_or_else ( | _ | panic ! ( " " path ) ) . replace ( " \r \n " , " \n " ) }
Read file and normalize newlines.
Read file and normalize newlines .
path
&Path