Browse Source

Merge branch 'master' of github.com:garritfra/sabre

c_for-loops
Garrit Franke 3 years ago
parent
commit
d7d2aaca43
  1. 2
      README.md
  2. 2
      src/command/build.rs

2
README.md

@ -1,7 +1,7 @@
# The Sabre Programming language
[![](https://img.shields.io/crates/v/sabre-lang.svg)](https://crates.io/crates/sabre-lang)
[![builds.sr.ht status](https://builds.sr.ht/~garritfra/sabre/commits/ci.yml.svg)](https://builds.sr.ht/~garritfra/sabre/commits/ci.yml?)
![Continuous integration](https://github.com/garritfra/sabre/workflows/Continuous%20integration/badge.svg?branch=master)
[![docs](https://img.shields.io/badge/docs-mdBook-blue.svg)](https://garritfra.github.io/sabre/latest)
[![Chat on Matrix](https://img.shields.io/badge/chat-on%20Matrix-green)](https://matrix.to/#/#sabre:matrix.slashdev.space?via=matrix.slashdev.space)

2
src/command/build.rs

@ -39,7 +39,7 @@ pub fn build(in_file: &PathBuf, out_file: &PathBuf) -> Result<(), String> {
let output = generator::generate(program);
let mut file = std::fs::File::create(out_file).expect("create failed");
file.write(output.as_bytes()).expect("write failed");
file.write_all(output.as_bytes()).expect("write failed");
file.flush().expect("Could not flush file");
Ok(())

Loading…
Cancel
Save