pub fn read_file( name: &'static str ) -> ::std::io::Result<String> {
        let mut file = File::open( name )?;
        let mut contents = String::new();
        file.read_to_string( &mut contents )?;
        contents.pop(); // remove trailing newline
        Ok( contents )
    }
/// read file contents to `String`, trailing newline chomped.
read file contents to `String`, trailing newline chomped.
read file contents to ` String ` trailing newline chomped .
pub fn read_file( name: &'static str ) -> ::std::io::Result<String> {
        let mut file = File::open( name )?;
        let mut contents = String::new();
        file.read_to_string( &mut contents )?;
        contents.pop(); // remove trailing newline
        Ok( contents )
    }
pub fn read_file ( name : & ' static str ) -> :: std :: io :: Result < String > { let mut file = File :: open ( name ) ? ; let mut contents = String :: new ( ) ; file . read_to_string ( & mut contents ) ? ; contents . pop ( ) ; // remove trailing newline Ok ( contents ) }
read file contents to `String`, trailing newline chomped.
read file contents to ` String ` trailing newline chomped .
name
&'static str