We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee05ff2 commit a4ff401Copy full SHA for a4ff401
lib/system.nim
@@ -190,7 +190,7 @@ when defined(nimHasDeclaredMagic):
190
else:
191
proc declaredInScope*(x: untyped): bool {.magic: "DefinedInScope", noSideEffect, compileTime.}
192
193
-proc `addr`*[T](x: var T): ptr T {.magic: "Addr", noSideEffect.} =
+proc `addr`*[T](x: T): ptr T {.magic: "Addr", noSideEffect.} =
194
## Builtin `addr` operator for taking the address of a memory location.
195
##
196
## .. note:: This works for `let` variables or parameters
0 commit comments