From 8e6af6259bd1dd47d81c36f0562ff362ca5d42c3 Mon Sep 17 00:00:00 2001 From: Gangzheng Tong Date: Fri, 11 Apr 2025 15:34:07 -0700 Subject: Fix user-guide typos (#6789) * Fix user-guide typos Use LLM to scan each of the markdown files to fix typos. Try not to change anything but the typos in this CL. * typo not caught by LLM * add output of ./build_toc.ps1 --- docs/user-guide/06-interfaces-generics.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/user-guide/06-interfaces-generics.md') diff --git a/docs/user-guide/06-interfaces-generics.md b/docs/user-guide/06-interfaces-generics.md index a07ccc6b7..bc2ab88df 100644 --- a/docs/user-guide/06-interfaces-generics.md +++ b/docs/user-guide/06-interfaces-generics.md @@ -6,7 +6,7 @@ permalink: /user-guide/interfaces-generics Interfaces and Generics =========================== -This chapter covers two interrelated Slang language features: interfaces and generics. We will talk about what they are, how do they relate to similar features in other languages, how are they parsed and translated by the compiler, and show examples on how these features simplifies and modularizes shader code. +This chapter covers two interrelated Slang language features: interfaces and generics. We will talk about what they are, how they relate to similar features in other languages, how they are parsed and translated by the compiler, and show examples on how these features simplify and modularize shader code. Interfaces ---------- @@ -423,7 +423,7 @@ struct MultiArrayFloatContainer : IFloatContainer } float getElementAt(Iterator iter) { - if (ite.indexr.x == 0) return firstBuffer[iter.index.y]; + if (iter.index.x == 0) return firstBuffer[iter.index.y]; else return secondBuffer[iter.index.y]; } } @@ -979,7 +979,7 @@ void printNumbers(expand each T args) where T == int } void compute(expand each T args) where T == int { - // Maps every element in `args` to `elementValue + 1`, and forward the + // Maps every element in `args` to `elementValue + 1`, and forwards the // new values as arguments to `printNumber`. printNumber(expand (each args) + 1); -- cgit v1.2.3