Skip to content

Commit

Permalink
Use whitespace for prompt continuation
Browse files Browse the repository at this point in the history
  • Loading branch information
ajcr committed Nov 12, 2023
1 parent bf552e3 commit 7f20e25
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ To see the same calculation, but in the case where we draw _with replacement_, w

```
urn> probability draw 2..13 with replacement
... from red=5, blue=7, green=3
... where red >= 2 and blue <= 5 show plot;
from red=5, blue=7, green=3
where red >= 2 and blue <= 5 show plot;
┌────────────────────────────────────────────────────────────┐
│ ▖ ▝ ▖ │
│ │
Expand All @@ -132,10 +132,10 @@ urn> probability draw 2..13 with replacement
Finally, we can use `OR` to specify any number of alternative constraints on our draw.
```
urn> probability draw 1..10 from red=5, blue=7, green=3
... where red >= 2 and blue <= 3
... or blue > 0 and green > 1
... or blue = 2 red >= 2 and green <= 2
... show plot;
where red >= 2 and blue <= 3
or blue > 0 and green > 1
or blue = 2 red >= 2 and green <= 2
show plot;
┌────────────────────────────────────────────────────────────┐
│ ▗ ▝ ▘ ▝│ 1.0
│ │
Expand Down
2 changes: 1 addition & 1 deletion src/urn/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

EOL = ";"
PROMPT = "urn> "
PROMPT_CONTINUATION = "... "
PROMPT_CONTINUATION = " " * len(PROMPT)


class UrnShell(cmd.Cmd):
Expand Down

0 comments on commit 7f20e25

Please sign in to comment.