diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-03-21 05:42:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-20 22:42:57 +0100 |
commit | 274d61865f53e4146518a1f54465785595052ffe (patch) | |
tree | 4202b608d1aa85d53daef7084338e958ba45b698 | |
parent | 9df8ca0d8104c5f474dd5184b69446bbb1515242 (diff) | |
download | Nim-274d61865f53e4146518a1f54465785595052ffe.tar.gz |
closes #21536; fixes manual (#21552)
fixes manual
-rw-r--r-- | doc/manual.md | 4 |
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): |