diff --git a/README.md b/README.md index d77f7f5a..225bb5f6 100644 --- a/README.md +++ b/README.md @@ -76,14 +76,14 @@ If you open `my_awesome_project/src/main.neva` with your favorite IDE you'll see ```neva import { fmt } -def Main(start) (stop) { - fmt.Println +def Main(start any) (stop any) { + println fmt.Println --- :start -> { 'Hello, World!' -> println -> :stop } } ``` -The `import { fmt }` statement imports the standard library's `fmt` package which provides common formatting and printing functionality. The `Main` component has `start` inport and `stop` outport, with a `println` node (instance of stdlib's `fmt.Println`). The network after `---` shows: on `start` message, `"Hello, World!"` is sent to `println`, then program terminates via `stop` signal. +The `import { fmt }` statement imports the standard library's `fmt` package which provides common formatting and printing functionality. The `Main` component has `start` inport and `stop` outport of type `any`, with a `println` node (instance of `fmt.Println`). The network after `---` shows: on `:start` message, `"Hello, World!"` is sent to `println`, then program terminates via `:stop` signal. ### What's Next?