Skip to content

Commit eec9199

Browse files
committed
Remain consistent across code examples
The blocks demonstrate different things, but it's confusing to have different code - mixing both behavior changes through context and unnecessary code changes.
1 parent 9eea190 commit eec9199

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/modules/using_modules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ assert true
193193
# => Assertion passes
194194
195195
hide assert
196-
assert equal 1 1
196+
assert equal 1 2
197197
# => Error:
198198
# => help: A command with that name exists in module `assert`. Try importing it with `use`
199199
@@ -208,7 +208,7 @@ Just as you can `use` a subset of the module's definitions, you can also `hide`
208208
```nu
209209
use std/assert
210210
hide assert main
211-
assert equal 1 1
211+
assert equal 1 2
212212
# => assertion passes
213213
214214
assert true

0 commit comments

Comments
 (0)