aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-09-13 16:34:33 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-09-13 16:34:33 -0400
commitc06a61e9bf93810174255474598cfeae785cfbd6 (patch)
tree27d8f4262d8cd8c72c75e348e63e6c7d6a6ec0d4 /doc
parent7c3636aaa38e8efa77b73ba94362802517ea739e (diff)
downloadzig-c06a61e9bf93810174255474598cfeae785cfbd6.tar.gz
zig-c06a61e9bf93810174255474598cfeae785cfbd6.zip
remove `this`. add `@This()`.
closes #1283
Diffstat (limited to 'doc')
-rw-r--r--doc/langref.html.in13
1 files changed, 2 insertions, 11 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in
index aefbfc5650..3f2e741e36 100644
--- a/doc/langref.html.in
+++ b/doc/langref.html.in
@@ -478,13 +478,9 @@ pub fn main() void {
<td><code>undefined</code></td>
<td>used to leave a value unspecified</td>
</tr>
- <tr>
- <td><code>this</code></td>
- <td>refers to the thing in immediate scope</td>
- </tr>
</table>
</div>
- {#see_also|Optionals|this#}
+ {#see_also|Optionals#}
{#header_close#}
{#header_open|String Literals#}
{#code_begin|test#}
@@ -4186,11 +4182,6 @@ fn foo() void {}
{#code_end#}
{#header_close#}
- {#header_open|this#}
- <p>TODO: example of this referring to Self struct</p>
- <p>TODO: example of this referring to recursion function</p>
- <p>TODO: example of this referring to basic block for @setRuntimeSafety</p>
- {#header_close#}
{#header_open|comptime#}
<p>
Zig places importance on the concept of whether an expression is known at compile-time.
@@ -7744,7 +7735,7 @@ ArrayType : "[" option(Expression) "]" option("align" "(" Expression option(":"
GroupedExpression = "(" Expression ")"
-KeywordLiteral = "true" | "false" | "null" | "undefined" | "error" | "this" | "unreachable" | "suspend"
+KeywordLiteral = "true" | "false" | "null" | "undefined" | "error" | "unreachable" | "suspend"
ErrorSetDecl = "error" "{" list(Symbol, ",") "}"