Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pubby committed Oct 22, 2023
1 parent 5ad6af7 commit 39293af
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions doc/doc.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4144,8 +4144,8 @@ fn foo(U x) U

=== Function Modifier Flags [[mod_flags]]

Modifier flags are specified prefixed with a `-` or `+++` character.
`-` is used to disable the modifier, while `+++` is used to enable it.
Modifier flags are specified prefixed with a `-` or `pass:c[+]` character.
`-` is used to disable the modifier, while `pass:c[+]` is used to enable it.

The following flags exist for function definitions:

Expand Down Expand Up @@ -4177,8 +4177,8 @@ fn foo(U x) U

=== Loop Modifier Flags [[mod_flags_loop]]

Modifier flags are specified prefixed with a `-` or `+++` character.
`-` is used to disable the modifier, while `+++` is used to enable it.
Modifier flags are specified prefixed with a `-` or `pass:c[+]` character.
`-` is used to disable the modifier, while `pass:c[+]` is used to enable it.

The following flags exist for loop statements:

Expand Down Expand Up @@ -4354,7 +4354,7 @@ Operators with lower precedence numbers come earlier in the order of operations.
| 8
| <<get_hw_addr>>

| `+`
| `pass:c[+]`
| 8
| <<unary_plus>>

Expand Down Expand Up @@ -4392,7 +4392,7 @@ Operators with lower precedence numbers come earlier in the order of operations.
| Left
| <<multiply>>

| `+`
| `pass:c[+]`
| 11
| Left
| <<add>>
Expand Down Expand Up @@ -4598,7 +4598,7 @@ This operator is intended to be used with inline assembly code.
Although this operator by itself is safe, dereferencing the addresses it returns can easily cause undefined behavior.
For regular code, it's recommended to use <<get_pointer>> instead.

==== Unary Plus `+` [[unary_plus]]
==== Unary Plus `pass:c[+]` [[unary_plus]]

Returns its operand, type and value unchanged. The operand must be an <<type_arithmetic, arithmetic type>>.

Expand Down Expand Up @@ -4743,7 +4743,7 @@ U a
a *= b // Equivalent to a = U(a * b)
----

==== Add `+` [[add]]
==== Add `pass:c[+]` [[add]]

Returns the sum of its operands.
The operands must be of the same <<type_quantity, quantity type>>, although `Int` and `Real` will convert.
Expand Down Expand Up @@ -5664,7 +5664,7 @@ Any attempt to use them at run-time will error.
|===

In many cases, `Int` and `Real` implicitly convert to other numeric types based on context.
For example, when using `Int` or `Real` in an operator like `+`,
For example, when using `Int` or `Real` in an operator like `pass:c[+]`,
the value converts to match the other operand's type.

----
Expand Down

0 comments on commit 39293af

Please sign in to comment.