summaryrefslogtreecommitdiff
path: root/test.rs
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-02 11:26:50 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-02 11:26:50 -0500
commit4ff4d669ccb658b8b48785d37946378a5b29688c (patch)
treea32804722d6172a23504213b2e862e90b1fa636e /test.rs
parentb712ad8c8c949f7b715c593531fdb5f0285014a9 (diff)
big fix with buffer_pos_to_pixels
also started rust highlighting
Diffstat (limited to 'test.rs')
-rw-r--r--test.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/test.rs b/test.rs
new file mode 100644
index 0000000..56e8bf4
--- /dev/null
+++ b/test.rs
@@ -0,0 +1,23 @@
+/*
+testing comments
+/* /* /* /* /* hello */ */ */ */ */
+yay
+*/
+use std::fs::File;
+use std::io::{Result, BufRead, BufReader};
+fn main() -> Result<()> {
+ let file = File::open("test.rs")?;
+ let mut reader = BufReader::new(file);
+ loop {
+ let mut line = String::new();
+ if reader.read_line(&mut line)? == 0 {
+ // reached end of file
+ break;
+ }
+ print!("{}", line);
+ }
+ print!("
+ string
+ ");
+ Ok(())
+}