From 80b21cef5af29b7473332f2f902a64caba687dc8 Mon Sep 17 00:00:00 2001
From: Andrew Kelley
Date: Sat, 18 Dec 2021 23:57:00 -0700
Subject: [PATCH] langref: fix tidy html error
regressed in 8468b544e8769b774e2e5988a58c51d991df999a
---
doc/langref.html.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/langref.html.in b/doc/langref.html.in
index 31395df538..90018cab30 100644
--- a/doc/langref.html.in
+++ b/doc/langref.html.in
@@ -2489,6 +2489,7 @@ test "null terminated array" {
Vectors support the same builtin operators as their underlying base types. These operations are performed
element-wise, and return a vector of the same length as the input vectors. This includes:
+
- Arithmetic ({#syntax#}+{#endsyntax#}, {#syntax#}-{#endsyntax#}, {#syntax#}/{#endsyntax#}, {#syntax#}*{#endsyntax#},
{#syntax#}@divFloor{#endsyntax#}, {#syntax#}@sqrt{#endsyntax#}, {#syntax#}@ceil{#endsyntax#},
@@ -2497,7 +2498,6 @@ test "null terminated array" {
{#syntax#}|{#endsyntax#}, {#syntax#}~{#endsyntax#}, etc.)
- Comparison operators ({#syntax#}<{#endsyntax#}, {#syntax#}>{#endsyntax#}, {#syntax#}=={#endsyntax#}, etc.)
-
It is prohibited to use a math operator on a mixture of scalars (individual numbers) and vectors.
Zig provides the {#link|@splat#} builtin to easily convert from scalars to vectors, and it supports {#link|@reduce#}