diff --git a/example/hello_world.hz b/example/hello_world.hz index fd2daf2..0a20682 100644 --- a/example/hello_world.hz +++ b/example/hello_world.hz @@ -1,4 +1,9 @@ fun main: int = do + -- Normal way of hello world @write("Hello, World!\n"); return 69; + + -- Hello world piped to @write() function + "Hello, World!\n" + |> @write(); end; \ No newline at end of file diff --git a/example/hello_world_pipe.hz b/example/hello_world_pipe.hz deleted file mode 100644 index fb84874..0000000 --- a/example/hello_world_pipe.hz +++ /dev/null @@ -1,4 +0,0 @@ -fun main: int = do - "Hello, World!\n" - |> @write(); -end; \ No newline at end of file