From 67313584d6879d68db53ced3108c2370bed5e8c1 Mon Sep 17 00:00:00 2001 From: cheneym2 Date: Tue, 16 Apr 2024 22:02:45 -0400 Subject: Fix Slang documentation typos (#3961) --- docs/user-guide/06-interfaces-generics.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 9de38e6e3..ba543df56 100644 --- a/docs/user-guide/06-interfaces-generics.md +++ b/docs/user-guide/06-interfaces-generics.md @@ -680,7 +680,7 @@ T compute(T a1, T a2) Extensions to Interfaces ----------------------------- -In addtion to extending ordinary types, you can define extensions on interfaces as well: +In addition to extending ordinary types, you can define extensions on interfaces as well: ```csharp // An example interface. interface IFoo @@ -748,9 +748,9 @@ Builtin Interfaces Slang supports the following builtin interfaces: - `IComparable`, provides methods for comparing two values of the conforming type. Supported by all basic data types, vector types and matrix types. -- `IRangedValue`, proivides methods for retrieving the minimum and maxinum value expressed by the range of the type. Supported by all integer and floating-point scalar types. -- `IArithmetic`, provides methods for the `+`, '-`, '*`, `/`, `%` and negating operations. Also provide a method for explicit conversion from `int`. Implemented by all builtin integer and floating-point scalar, vector and matrix types. -- `ILogical`, provides methods for all bit operations and logical `and`, `or`, `not` oeprations. Also provide a method for explicit conversion from `int`. Implemented by all builtin integer scalar, vector and matrix types. +- `IRangedValue`, provides methods for retrieving the minimum and maximum value expressed by the range of the type. Supported by all integer and floating-point scalar types. +- `IArithmetic`, provides methods for the `+`, `-`, `*`, `/`, `%` and negating operations. Also provide a method for explicit conversion from `int`. Implemented by all builtin integer and floating-point scalar, vector and matrix types. +- `ILogical`, provides methods for all bit operations and logical `and`, `or`, `not` operations. Also provide a method for explicit conversion from `int`. Implemented by all builtin integer scalar, vector and matrix types. - `IInteger`, represents a logical integer that supports both `IArithmetic` and `ILogical` operations. Implemented by all builtin integer scalar types. - `IDifferentiable`, represents a value that is differentiable. - `IFloat`, represents a logical float that supports both `IArithmetic`, `ILogical` and `IDifferentiable` operations. Also provides methods to convert to and from `float`. Implemented by all builtin floating-point scalar, vector and matrix types. @@ -759,7 +759,7 @@ Slang supports the following builtin interfaces: - `__BuiltinIntegerType`, implemented by all integer scalar types. - `__BuiltinFloatingPointType`, implemented by all floating-point scalar types. - `__BuiltinArithmeticType`, implemented by all integer and floating-point scalar types. -- `__BuiltinLogicalType`, implemmented by all integer types and the `bool` type. +- `__BuiltinLogicalType`, implemented by all integer types and the `bool` type. Operator overloads are defined for `IArithmetic`, `ILogical`, `IInteger`, `IFloat`, `__BuiltinIntegerType`, `__BuiltinFloatingPointType`, `__BuiltinArithmeticType` and `__BuiltinLogicalType` types, so the following code is valid: -- cgit v1.2.3