summary refs log tree commit diff stats
path: root/lib/std/setutils.nim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2021-06-29 18:08:50 -0700
committerGitHub <noreply@github.com>2021-06-29 18:08:50 -0700
commit36d24846b6685a44ff2185a823cdcb0f3bc236d3 (patch)
treeb64edfe649c1ff6fa11272ed9504885c36472409 /lib/std/setutils.nim
parent97fc95012d2725b625c492b6b72336a89c501076 (diff)
downloadNim-36d24846b6685a44ff2185a823cdcb0f3bc236d3.tar.gz
typo: enmRange => enumElementsAsSet (#18394)
Diffstat (limited to 'lib/std/setutils.nim')
-rw-r--r--lib/std/setutils.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/setutils.nim b/lib/std/setutils.nim
index aba5f348a..84cc93623 100644
--- a/lib/std/setutils.nim
+++ b/lib/std/setutils.nim
@@ -36,7 +36,7 @@ template toSet*(iter: untyped): untyped =
     incl(result, x)
   result
 
-macro enmRange(enm: typed): untyped = result = newNimNode(nnkCurly).add(enm.getType[1][1..^1])
+macro enumElementsAsSet(enm: typed): untyped = result = newNimNode(nnkCurly).add(enm.getType[1][1..^1])
 
 # func fullSet*(T: typedesc): set[T] {.inline.} = # xxx would give: Error: ordinal type expected
 func fullSet*[T](U: typedesc[T]): set[T] {.inline.} =
@@ -49,7 +49,7 @@ func fullSet*[T](U: typedesc[T]): set[T] {.inline.} =
   when T is Ordinal:
     {T.low..T.high}
   else: # Hole filled enum
-    enmRange(T)
+    enumElementsAsSet(T)
 
 func complement*[T](s: set[T]): set[T] {.inline.} =
   ## Returns the set complement of `a`.