summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2023-03-21 05:42:57 +0800
committerGitHub <noreply@github.com>2023-03-20 22:42:57 +0100
commit274d61865f53e4146518a1f54465785595052ffe (patch)
tree4202b608d1aa85d53daef7084338e958ba45b698
parent9df8ca0d8104c5f474dd5184b69446bbb1515242 (diff)
downloadNim-274d61865f53e4146518a1f54465785595052ffe.tar.gz
closes #21536; fixes manual (#21552)
fixes manual
-rw-r--r--doc/manual.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/manual.md b/doc/manual.md
index 31c620ca7..98f9d2ec3 100644
--- a/doc/manual.md
+++ b/doc/manual.md
@@ -5455,7 +5455,7 @@ more complex type classes:
 
   ```nim
   # create a type class that will match all tuple and object types
-  type RecordType = tuple or object
+  type RecordType = (tuple or object)
 
   proc printFields[T: RecordType](rec: T) =
     for key, value in fieldPairs(rec):
@@ -5504,7 +5504,7 @@ A type class can be used directly as the parameter's type.
 
   ```nim
   # create a type class that will match all tuple and object types
-  type RecordType = tuple or object
+  type RecordType = (tuple or object)
 
   proc printFields(rec: RecordType) =
     for key, value in fieldPairs(rec):