Skip to content

Commit 9970adb

Browse files
committed
rename std/asserts => std/exceptions
1 parent 918e9c0 commit 9970adb

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@
334334

335335
- Added `dom.scrollIntoView` proc with options
336336

337-
- add `std/asserts` containing `enforce`
337+
- add `std/exceptions` containing `enforce`
338338

339339
## Language changes
340340

File renamed without changes.

lib/system.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ type
582582
RootRef* = ref RootObj ## Reference to `RootObj`.
583583

584584

585-
include "system/exceptions"
585+
include "system/exceptions_impl"
586586

587587
when defined(js) or defined(nimdoc):
588588
type

lib/system/assertions.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## **Note:** This module is reexported by `system` and thus does not need to be
44
## imported directly (with `system/assertions`).
55
##
6-
## See also: `std/asserts`
6+
## See also: `std/exceptions`
77

88
when not declared(sysFatal):
99
include "system/fatal"
File renamed without changes.

tests/stdlib/tasserts.nim renamed to tests/stdlib/texceptions.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
see also tassert2
33
]#
44

5-
import std/asserts
5+
import std/exceptions
66
import std/strutils
77

88

@@ -16,6 +16,6 @@ block: ## checks AST isn't transformed as it used to
1616
enforce a > 1, $a
1717
except EnforceError as e:
1818
raised = true
19-
doAssert e.msg.endsWith "tasserts.nim(16, 13) `a > 1` 1"
19+
doAssert e.msg.endsWith "texceptions.nim(16, 13) `a > 1` 1"
2020
doAssert raised
2121
doAssertRaises(EnforceError): enforce a > 1, $a

0 commit comments

Comments
 (0)