From 29945fb8b3b954e846e3f062600a37b7c1ab47d6 Mon Sep 17 00:00:00 2001
From: Veikka Tuominen
Date: Wed, 23 Jun 2021 09:13:44 +0300
Subject: [PATCH] fix typos in langref.html
I thought I built the docs locally but apparently not.
---
doc/langref.html.in | 14 +++++++-------
1 file 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 {
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 std, for easy access to
Zig's standard library.
@@ -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" {
declaration must be one of two things:
- - An identifier ({#syntax#}x{#endsyntax#}) identifying a {#link|function|Functions#} or
- {#link|global variable|Global Variables#}.
- - Field access ({#syntax#}x.y{#endsyntax#}) looking up a {#link|function|Functions#} or
- {#link|global variable|Global Variables#}.
+ - An identifier ({#syntax#}x{#endsyntax#}) identifying a {#link|function|Functions#} or a
+ {#link|variable|Container Level Variables#}.
+ - Field access ({#syntax#}x.y{#endsyntax#}) looking up a {#link|function|Functions#} or a
+ {#link|variable|Container Level Variables#}.
This builtin can be called from a {#link|comptime#} block to conditionally export symbols.