Skip to content

Commit 0a7db6f

Browse files
committed
Fix typos
1 parent 4f6d1f4 commit 0a7db6f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

book/modules/creating_modules.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ export def examine-module [] {
338338
}
339339
```
340340

341-
Running this command changes the directory _locally_ in the module, but the changes are not propogated to the parent scope.
341+
Running this command changes the directory _locally_ in the module, but the changes are not propagated to the parent scope.
342342

343343
:::
344344

@@ -373,7 +373,7 @@ go modules
373373
# => Error: $env.NU_MODULES_DIR is not found
374374
```
375375

376-
This doesn't work because `my-utils` isn't _evaluated_ in this case; it is only _parsed_ when the `go.nu` module is imported. While this brings all of the other exports into scope, it doese not _run_ the `export-env` block.
376+
This doesn't work because `my-utils` isn't _evaluated_ in this case; it is only _parsed_ when the `go.nu` module is imported. While this brings all of the other exports into scope, it does not _run_ the `export-env` block.
377377

378378
::: important
379379
As mentioned at the start of this chapter, trying this while `my-utils` (and its `$env.NU_MODULES_DIR`) is still in scope from a previous import will _not_ fail as expected. Test in a new shell session to see the "normal" failure.
@@ -423,7 +423,7 @@ Note that the first method keeps `my-utils` environment inside the `go.nu` modul
423423

424424
### Module files and commands cannot be named after parent module
425425

426-
A `.nu` file cannot have the same name as its module directory (e.g., `spam/spam.nu`) as this would create an ambiguous sitation with the name being defined twice. This is similar to the situation described above where a command cannot have the same name as its parent.
426+
A `.nu` file cannot have the same name as its module directory (e.g., `spam/spam.nu`) as this would create an ambiguous condition with the name being defined twice. This is similar to the situation described above where a command cannot have the same name as its parent.
427427

428428
## Windows Path Syntax
429429

book/standard_library.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ These submodules are normally imported with `use std/<submodule>` (without a glo
6969

7070
#### 2. Import the _definitions_ (contents) of the module directly
7171

72-
Some submodules are easier to use when their definitions (commands, aliases, contants, etc.) are loaded into the current scope. For instance:
72+
Some submodules are easier to use when their definitions (commands, aliases, constants, etc.) are loaded into the current scope. For instance:
7373

7474
```nu
7575
use std/formats *

0 commit comments

Comments
 (0)