mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 19:00:11 +01:00
Fix bitwise OR markdown table pipe escapes (#7602)
https://docs.carbon-lang.dev/docs/design/expressions/#operators Escaping `|` is needed to prevent markdown table interpreting it as a cell edge, however using `\|` in backticks shows the backslash too. Solution: use `<code>` instead. This overflows the `|` table cell but it seems to render correctly anyway. Co-authored-by: David Blaikie <dblaikie@gmail.com> Co-authored-by: Richard Smith <richard@metafoo.co.uk>
This commit is contained in:
co-authored by
David Blaikie
Richard Smith
parent
8e90e2a855
commit
e7050af1c9
@@ -340,7 +340,7 @@ Most expressions are modeled as operators:
|
||||
| Arithmetic | [`/`](arithmetic.md) | `x / y` | `x` divided by `y`, or the quotient thereof. |
|
||||
| Arithmetic | [`%`](arithmetic.md) | `x % y` | `x` modulo `y`. |
|
||||
| Bitwise | [`&`](bitwise.md) | `x & y` | The bitwise AND of `x` and `y`. |
|
||||
| Bitwise | [`\|`](bitwise.md) | `x \| y` | The bitwise OR of `x` and `y`. |
|
||||
| Bitwise | [<code>\|</code>](bitwise.md) | <code>x \| y</code> | The bitwise OR of `x` and `y`. |
|
||||
| Bitwise | [`^`](bitwise.md) (binary) | `x ^ y` | The bitwise XOR of `x` and `y`. |
|
||||
| Bitwise | [`<<`](bitwise.md) | `x << y` | `x` bit-shifted left `y` places. |
|
||||
| Bitwise | [`>>`](bitwise.md) | `x >> y` | `x` bit-shifted right `y` places. |
|
||||
|
||||
Reference in New Issue
Block a user