Skip to content

Commit

Permalink
Merge pull request #1807 from ruby/soutaro-patch-1
Browse files Browse the repository at this point in the history
Fix proc type syntax
  • Loading branch information
soutaro authored Apr 22, 2024
2 parents e2970ca + db7bf13 commit 30d51cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ _literal_ ::= _string-literal_
| `false`

_proc_ ::= `^` _parameters?_ _self-type-binding?_ _block?_ `->` _type_
| `^` `(` `?` `)` _self-type-binding?_ _block?_ `->` _type_ # Proc type with untyped parameter
| `^` `(` `?` `)` `->` _type_ # Proc type with untyped parameter
```

### Class instance type
Expand Down

0 comments on commit 30d51cf

Please sign in to comment.