Skip to content

Commit

Permalink
change pwd to PWD
Browse files Browse the repository at this point in the history
Signed-off-by: Carol Geng <[email protected]>
  • Loading branch information
carolgeng authored and Licenser committed Jun 28, 2022
1 parent 36f4619 commit e185440
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/guides/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ end;
Same as before we can test our code, you can fetch the finished file from [git](__GIT__/../code/basics/transform.troy).

```bash
$ TREMOR_PATH="$TREMOR_PATH:${pwd}/transform" tremor run transfor/main.troy
$ TREMOR_PATH="$TREMOR_PATH:${PWD}/transform" tremor run transform/main.troy
hello
Hello.
why
Expand Down Expand Up @@ -437,7 +437,7 @@ end;
That all set, we can run our script as before, just this time, when entering `exit` tremor will terminate.

```bash
$ TREMOR_PATH="$TREMOR_PATH:${pwd}/filter" tremor run filter/main.troy
$ TREMOR_PATH="$TREMOR_PATH:${PWD}/filter" tremor run filter/main.troy
hello
Hello.
why
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/code/basics/transform/lib/scripts.tremor
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ script
# Find the right punctuation by looking at the first wird of the last sentence
# yes this is a poor heuristic!
let punctuation = match event of
case ~ re|.*[.?!]?(Why\|How\|Where\|Who)[^.?!]*$| => "?"
case ~ re|.*[.?!]?(Why\|How\|Where\|Who\|When)[^.?!]*$| => "?"
case _ => "."
end;
event + punctuation
Expand Down

0 comments on commit e185440

Please sign in to comment.