Revise docs.
This commit is contained in:
@@ -9,15 +9,15 @@ and _number_ of parameters, but not parameter _types_ since all parameters are t
|
||||
New definitions _overwrite_ previous definitions of the same name and number of parameters.
|
||||
|
||||
```rust
|
||||
fn foo(x,y,z) { print("Three!!! " + x + "," + y + "," + z) }
|
||||
fn foo(x,y,z) { print("Three!!! " + x + "," + y + "," + z); }
|
||||
|
||||
fn foo(x) { print("One! " + x) }
|
||||
fn foo(x) { print("One! " + x); }
|
||||
|
||||
fn foo(x,y) { print("Two! " + x + "," + y) }
|
||||
fn foo(x,y) { print("Two! " + x + "," + y); }
|
||||
|
||||
fn foo() { print("None.") }
|
||||
fn foo() { print("None."); }
|
||||
|
||||
fn foo(x) { print("HA! NEW ONE! " + x) } // overwrites previous definition
|
||||
fn foo(x) { print("HA! NEW ONE! " + x); } // overwrites previous definition
|
||||
|
||||
foo(1,2,3); // prints "Three!!! 1,2,3"
|
||||
|
||||
|
Reference in New Issue
Block a user