Velocity/src/main.rs
2022-11-03 07:31:24 +00:00

22 lines
318 B
Rust

struct Buffer {
data: Vec<String>,
name: &str,
}
struct Editor {
buffer: Buffer,
}
fn main() {
let bufffer = Buffer {
data: Vec::from([String::from("a test")]),
name: "uhh"
};
let editor = Editor {
buffer: bufffer,
};
println!("{}", editor.buffer.data[0])
}