I hereby claim:
- I am alanjcfs on github.
- I am mimic (https://keybase.io/mimic) on keybase.
- I have a public key ASBmZqKO5C1s06856tzEecMny9tXx_THTB_IcysxYTHM2Qo
To claim this, I am signing this object:
pub mod area_calculator { | |
#[test] | |
fn it_works() { | |
let s = Rectangle{width: 10u32, height: 20u32}; | |
assert!(s.area() == 200u32); | |
let t = Square{ side: 20u32 }; | |
assert!(t.area() == 400u32); | |
} | |
pub struct Rectangle { |
I hereby claim:
To claim this, I am signing this object:
extern crate unicode_segmentation; | |
use unicode_segmentation::UnicodeSegmentation; | |
use std::fs::File; | |
use std::io::{BufReader, Error, Read}; | |
use regex::Regex; | |
pub fn read_file(s: &str) -> Result<Vec<String>, Error> { | |
let f = File::open(s)?; | |
let mut file = BufReader::new(&f); | |
let mut string: String = "".to_string(); |