summaryrefslogtreecommitdiff
path: root/docs/user-guide/02-conventional-features.md
diff options
context:
space:
mode:
authorGangzheng Tong <gtong@nvidia.com>2025-04-11 15:34:07 -0700
committerGitHub <noreply@github.com>2025-04-11 22:34:07 +0000
commit8e6af6259bd1dd47d81c36f0562ff362ca5d42c3 (patch)
tree86e7a9671dae748922ca18eec544a318cd708443 /docs/user-guide/02-conventional-features.md
parent61a6c211b1587a7b9ed6a24ae1ba6fe0600c80d8 (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/02-conventional-features.md')
-rw-r--r--docs/user-guide/02-conventional-features.md17
1 files changed, 9 insertions, 8 deletions
diff --git a/docs/user-guide/02-conventional-features.md b/docs/user-guide/02-conventional-features.md
index 5c15986f8..695d61e81 100644
--- a/docs/user-guide/02-conventional-features.md
+++ b/docs/user-guide/02-conventional-features.md
@@ -45,7 +45,7 @@ the list [`int`, `int64_t`] which can represent the specified literal value. If
an `uint64_t` and a warning is given. The type of hexadecimal non-suffixed integer literal is the first type from the list
[`int`, `uint`, `int64_t`, `uint64_t`] that can represent the specified literal value. For more information on 64 bit integer literals see the documentation on [64 bit type support](../64bit-type-support.md).
-The following floating-point type are provided:
+The following floating-point types are provided:
| Name | Description |
|---------------|------------------------------|
@@ -57,7 +57,7 @@ All targets support the 32-bit `float`, but support for the other types depends
### Boolean Type
-The type `bool` is used to represent Boolean truth value: `true` and `false`.
+The type `bool` is used to represent Boolean truth values: `true` and `false`.
For compatibility reasons, the `sizeof(bool)` depends on the target.
@@ -955,7 +955,7 @@ Slang has the following rules:
Initializer Lists
----------
-Initializer List's are an expression of the form `{...}`.
+Initializer Lists are an expression of the form `{...}`.
```csharp
int myFunc()
@@ -964,35 +964,36 @@ int myFunc()
}
```
-### Initializer List's - Scalar
+### Initializer Lists - Scalar
```csharp
// Equivalent to `int a = 1`
int a = {1};
```
-### Initializer List's - Vectors
+### Initializer Lists - Vectors
```csharp
// Equivalent to `float3 a = float3(1,2,3)`
float3 a = {1, 2, 3};
```
-### Initializer List's - Arrays/Matrixes
+### Initializer Lists - Arrays/Matrices
-#### Array Of Scalar's
+#### Array Of Scalars
```csharp
// Equivalent to `int[2] a; a[0] = 1; a[1] = 2;`
int a[2] = {1, 2}
```
-#### Array Of Aggregate's
+#### Array Of Aggregates
```csharp
// Equivalent to `float3 a[2]; a[0] = {1,2,3}; b[1] = {4,5,6};`
float3 a[2] = { {1,2,3}, {4,5,6} };
```
+
#### Flattened Array Initializer
```csharp