Skip to content

Commit

Permalink
@vog Fix typo in 4ad_01_operators.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vog committed Mar 22, 2024
1 parent 9e082a3 commit 39843db
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions data/tutorials/language/4ad_01_operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,21 +93,22 @@ OCaml has a subtle syntax; not everything is allowed as an operator symbol. An o
**Prefix Operator**

1. First character
* `?` `~` or
* `!`
* `?` `~` or
* `!`
1. Following characters, at least one if the first character is `!`, optional otherwise
* `$` `&` `*` `+` `-` `/` `=` `>` `@` `^` `|` or
* `%` `<`
* `$` `&` `*` `+` `-` `/` `=` `>` `@` `^` `|` or
* `%` `<`

**Binary Operator**

1. First character
* `$` `&` `*` `+` `-` `/` `=` `>` `@` `^` `|` or
* `%` `<` or
* `#`
2. Following characters, at least one if the first character is `#`, optional otherwise
* `$` `&` `*` `+` `-` `/` `=` `>` `@` `^` `|` or
* `%` `<` or
* `!` `.` `:` `?` `~`
* `$` `&` `*` `+` `-` `/` `=` `>` `@` `^` `|` or
* `%` `<` or
* `#`
1. Following characters, at least one if the first character is `#`, optional otherwise
* `$` `&` `*` `+` `-` `/` `=` `>` `@` `^` `|` or
* `%` `<` or
* `!` `.` `:` `?` `~`

This is defined in the [Prefix and Infix symbols](/manual/lex.html#sss:lex-ops-symbols) section of The OCaml Manual.

Expand Down

0 comments on commit 39843db

Please sign in to comment.