瀏覽代碼

Merge branch 'master' of https://github.com/marcobambini/gravity

Marco Bambini 7 年之前
父節點
當前提交
966f42e5ef
共有 1 個文件被更改,包括 9 次插入1 次删除
  1. 9 1
      docs/getting-started.html

+ 9 - 1
docs/getting-started.html

@@ -138,12 +138,20 @@
 			<!-- Command line -->
 			<!-- Command line -->
 			<h4 class="section-h4">Unit Tests</h4>
 			<h4 class="section-h4">Unit Tests</h4>
 			<p>You can run unit tests by providing a path to a folder containing all tests:</p>
 			<p>You can run unit tests by providing a path to a folder containing all tests:</p>
-			<pre><code>
+			<pre><code class="swift">
 	./unittest path_to_test_folder
 	./unittest path_to_test_folder
 			</code></pre>
 			</code></pre>
 			<p>You should obtain an output like:
 			<p>You should obtain an output like:
 			<img src="images/unittest.png" width="666px" height="466px">
 			<img src="images/unittest.png" width="666px" height="466px">
 			</p>
 			</p>
+			
+			<h4 class="section-h4">Hello World</h4>
+			<p>A simple <strong>Hello World</strong> code in Gravity looks like</p>
+			<pre><code>
+			    func main() {
+			        System.print("Hello World!")
+			    }
+			</code></pre>
 
 
          	</div>
          	</div>
          	<!-- END CONTENT -->
          	<!-- END CONTENT -->