aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2021-06-23 09:13:44 +0300
committerVeikka Tuominen <git@vexu.eu>2021-06-23 09:20:39 +0300
commit29945fb8b3b954e846e3f062600a37b7c1ab47d6 (patch)
treee13afc51d9ed9934cc73f1f4c9d2e6e115c819d8
parentce3679aa45710261afa2e519cfc55164541643fc (diff)
downloadzig-29945fb8b3b954e846e3f062600a37b7c1ab47d6.tar.gz
zig-29945fb8b3b954e846e3f062600a37b7c1ab47d6.zip
fix typos in langref.html
I thought I built the docs locally but apparently not.
-rw-r--r--doc/langref.html.in14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in
index b4eb565969..7bb75673e1 100644
--- a/doc/langref.html.in
+++ b/doc/langref.html.in
@@ -258,7 +258,7 @@ pub fn main() !void {
<p>
The code sample begins by adding Zig's Standard Library to the build using the {#link|@import#} builtin function.
The {#syntax#}@import("std"){#endsyntax#} function call creates a structure to represent the Standard Library.
- The code then {#link|declares|Container level Variables#} a
+ The code then {#link|declares|Container Level Variables#} a
{#link|constant identifier|Assignment#}, named <code>std</code>, for easy access to
<a href="https://github.com/ziglang/zig/wiki/FAQ#where-is-the-documentation-for-the-zig-standard-library">Zig's standard library</a>.
</p>
@@ -927,8 +927,8 @@ fn foo() i32 {
const expect = std.testing.expect;
test "static local variable" {
- expect(foo() == 1235);
- expect(foo() == 1236);
+ try expect(foo() == 1235);
+ try expect(foo() == 1236);
}
fn foo() i32 {
@@ -7570,10 +7570,10 @@ test "main" {
<code>declaration</code> must be one of two things:
</p>
<ul>
- <li>An identifier ({#syntax#}x{#endsyntax#}) identifying a {#link|function|Functions#} or
- {#link|global variable|Global Variables#}.</li>
- <li>Field access ({#syntax#}x.y{#endsyntax#}) looking up a {#link|function|Functions#} or
- {#link|global variable|Global Variables#}.</li>
+ <li>An identifier ({#syntax#}x{#endsyntax#}) identifying a {#link|function|Functions#} or a
+ {#link|variable|Container Level Variables#}.</li>
+ <li>Field access ({#syntax#}x.y{#endsyntax#}) looking up a {#link|function|Functions#} or a
+ {#link|variable|Container Level Variables#}.</li>
</ul>
<p>
This builtin can be called from a {#link|comptime#} block to conditionally export symbols.