diff options
| author | Gangzheng Tong <gtong@nvidia.com> | 2025-04-11 15:34:07 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-11 22:34:07 +0000 |
| commit | 8e6af6259bd1dd47d81c36f0562ff362ca5d42c3 (patch) | |
| tree | 86e7a9671dae748922ca18eec544a318cd708443 /docs/user-guide/06-interfaces-generics.md | |
| parent | 61a6c211b1587a7b9ed6a24ae1ba6fe0600c80d8 (diff) | |
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
Diffstat (limited to 'docs/user-guide/06-interfaces-generics.md')
| -rw-r--r-- | docs/user-guide/06-interfaces-generics.md | 6 |
1 files changed, 3 insertions, 3 deletions
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<each T>(expand each T args) where T == int } void compute<each T>(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); |
