Skip to content

Commit d1926e1

Browse files
authored
Remove unsupported syntax from type signatures (#1596)
1 parent 14cfddc commit d1926e1

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lang-guide/chapters/types/type_signatures.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ def my-command [x: int, y: string] { }
2525
2626
# Parameter declaration in closures
2727
do {|nums : list<int>| $nums | describe} [ 1 2 3 ]
28-
29-
# Input type declaration
30-
def my-filter []: list { }
31-
32-
# Return type declaration
33-
def "my make" [] -> list { }
3428
```
3529

3630
For a further discussion on custom command signatures please refer to: [Custom Commands](/book/custom_commands.html)
@@ -44,9 +38,6 @@ There are 3 forms of valid type signatures in Nu:
4438
- Compound:
4539
- `list<string>`,
4640
`record<type: int, bar: string>`
47-
- Multiple: Enumerations of the above kinds delimited by commas `, `:
48-
- `<string, int>`
49-
- These can only be used for return types
5041

5142
## Custom command parameters and flags
5243

0 commit comments

Comments
 (0)