add script to push docs (will be tested soon)
authorRalf Jung <post@ralfj.de>
Mon, 8 Jun 2015 12:08:13 +0000 (14:08 +0200)
committerRalf Jung <post@ralfj.de>
Mon, 8 Jun 2015 12:08:13 +0000 (14:08 +0200)
push-docs [new file with mode: 0644]
src/main.rs
src/part01.rs

diff --git a/push-docs b/push-docs
new file mode 100644 (file)
index 0000000..7a6dc60
--- /dev/null
+++ b/push-docs
@@ -0,0 +1,9 @@
+#!/bin/bash
+set -e
+
+cd "$(dirname "$0"))"
+./pycco-rs src/*.rs
+cd docs
+git add .
+git commit -m "semi-auto-update of the documentation"
+git push
index e4108d44eea8f081c1d196e196526b3ca047972e..7bf7dbea29d520bf23d416f34255a88f17681979 100644 (file)
@@ -1,3 +1,4 @@
+#![allow(dead_code)]
 // Welcome to Rust-101
 // ===================
 //
index 2e350bc469fef6afc760ac6a7645747276ee631a..c4c21c5ef0eb6d493f9376a5743a5541321eb723 100644 (file)
@@ -3,8 +3,10 @@
 // Rust-101, Part 00
 // =================
 
-
+pub fn read_vec() -> Vec<i32> {
+    vec![0,1,2,3,4]
+}
 
 pub fn part_main() {
     
-}
\ No newline at end of file
+}