summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2019-02-14 00:52:15 -0800
committerAndreas Rumpf <rumpf_a@web.de>2019-02-14 09:52:15 +0100
commit9913cef872cc2bcf8fe1567c5ed420c67859234c (patch)
tree46c5f3f61c6de93b1044561cdaef1f87f8f48435 /compiler
parent3520253a09cb8f32df834e619c7435092a370e9d (diff)
downloadNim-9913cef872cc2bcf8fe1567c5ed420c67859234c.tar.gz
fix typo in codeReordering error msg (#10667)
* fix typo in codeReordering

* reorder=>codeReordering
Diffstat (limited to 'compiler')
-rw-r--r--compiler/pragmas.nim2
-rw-r--r--compiler/reorder.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim
index d12f5f5d1..f88035a07 100644
--- a/compiler/pragmas.nim
+++ b/compiler/pragmas.nim
@@ -241,7 +241,7 @@ proc pragmaNoForward(c: PContext, n: PNode; flag=sfNoForward) =
 
   # deprecated as of 0.18.1
   message(c.config, n.info, warnDeprecated,
-          "use {.experimental: \"codeReordering.\".} instead; " &
+          "use {.experimental: \"codeReordering\".} instead; " &
           (if flag == sfNoForward: "{.noForward.}" else: "{.reorder.}") & " is deprecated")
 
 proc processCallConv(c: PContext, n: PNode) =
diff --git a/compiler/reorder.nim b/compiler/reorder.nim
index 8c4d0d307..18ec659ba 100644
--- a/compiler/reorder.nim
+++ b/compiler/reorder.nim
@@ -212,7 +212,7 @@ proc mergeSections(conf: ConfigRef; comps: seq[seq[DepN]], res: PNode) =
           # Problematic circular dependency, we arrange the nodes into
           # their original relative order and make sure to re-merge
           # consecutive type and const sections
-          var wmsg = "Circular dependency detected. reorder pragma may not be able to" &
+          var wmsg = "Circular dependency detected. `codeReordering` pragma may not be able to" &
             " reorder some nodes properely"
           when defined(debugReorder):
             wmsg &= ":\n"