diff --git a/changelogs/changelog_1_2_0.md b/changelogs/changelog_1_2_0.md index a396e014bc..6a5a6c586c 100644 --- a/changelogs/changelog_1_2_0.md +++ b/changelogs/changelog_1_2_0.md @@ -149,9 +149,9 @@ echo f versions. The documentation was improved to acknowledge this special case. See https://github.com/nim-lang/RFCs/issues/175 for more details. - New syntax for lvalue references: `var b {.byaddr.} = expr` enabled by - `import std/byaddr`. + `import std/decls`. - `var a {.foo.}: MyType = expr` now lowers to `foo(a, MyType, expr)` for - non-builtin pragmas, enabling things like lvalue references (see `pragmas.byaddr`). + non-builtin pragmas, enabling things like lvalue references (see `decls.byaddr`). ## Compiler changes diff --git a/lib/std/byaddr.nim b/lib/std/decls.nim similarity index 100% rename from lib/std/byaddr.nim rename to lib/std/decls.nim diff --git a/tests/stdlib/tbyaddr.nim b/tests/stdlib/tdecls.nim similarity index 98% rename from tests/stdlib/tbyaddr.nim rename to tests/stdlib/tdecls.nim index b485635c72..3567639e05 100644 --- a/tests/stdlib/tbyaddr.nim +++ b/tests/stdlib/tdecls.nim @@ -1,4 +1,4 @@ -import std/byaddr +import std/decls block: var s = @[10,11,12]