Fix bugs, add propper tests
This commit is contained in:
14
std/str.mcl
Normal file
14
std/str.mcl
Normal file
@@ -0,0 +1,14 @@
|
||||
type cstr = [u8];
|
||||
|
||||
|
||||
struct str {
|
||||
len: usize,
|
||||
inner: &cstr
|
||||
}
|
||||
|
||||
fn str.len(&self) -> usize {
|
||||
return self.len;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user