We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8809ae7 commit d3635e6Copy full SHA for d3635e6
docs/cpp2/functions.md
@@ -45,7 +45,7 @@ There are six ways to pass parameters that cover all use cases, that can be writ
45
| Parameter ***kind*** | "Pass an `x` the function ______" | Accepts arguments that are | Special semantics | ***kind*** `x: X` Compiles to Cpp1 as |
46
|---|---|---|---|---|
47
| `in` (default) | can read from | anything | always `#!cpp const`<p>automatically passes by value if cheaply copyable | `X const x` or `X const& x` |
48
-| `copy` | takes a copy of | anything | acts like a normal local variable initialized with the argument | `X x` |
+| `copy` | gets a copy of | anything | acts like a normal local variable initialized with the argument | `X x` |
49
| `inout` | can read from and write to | lvalues | | `X& x` |
50
| `out` | writes to (including construct) | lvalues (including uninitialized) | must `=` assign/construct before other uses | `cpp2::impl::out<X>` |
51
| `move` | moves from (consume the value of) | rvalues | automatically moves from every definite last use | `X&&` |
0 commit comments