summaryrefslogtreecommitdiff
path: root/docs/user-guide/05-capabilities.md
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2024-11-29 14:02:19 +0700
committerGitHub <noreply@github.com>2024-11-29 15:02:19 +0800
commitc3557978cf0184aaf75c27c309bc87e84fd6ab79 (patch)
treee7372839055ca3a7f2ad7b3aa7c895e428778533 /docs/user-guide/05-capabilities.md
parent71f97268789164bd77614636536172ba657c6a57 (diff)
docs: Reduce typo count (#5671)
Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com>
Diffstat (limited to 'docs/user-guide/05-capabilities.md')
-rw-r--r--docs/user-guide/05-capabilities.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/user-guide/05-capabilities.md b/docs/user-guide/05-capabilities.md
index 8f377f5a4..6426cb37c 100644
--- a/docs/user-guide/05-capabilities.md
+++ b/docs/user-guide/05-capabilities.md
@@ -92,7 +92,7 @@ public void myFunc()
}
```
-## Inferrence of Capability Requirements
+## Inference of Capability Requirements
By default, Slang will infer the capability requirements of a function given its definition, as long as the function has `internal` or `private` visibility. For example, given:
```csharp
@@ -110,7 +110,7 @@ Slang will automatically deduce that `myFunc` has capability
```
Since `discard` statement requires capability `fragment`.
-## Inferrence on target_switch
+## Inference on target_switch
A `__target_switch` statement will introduce disjunctions in its inferred capability requirement. For example:
```csharp