Skip to content

Commit f64ce56

Browse files
committed
Doc ordering fix typing for ttFile
1 parent 77ac28e commit f64ce56

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

doc/mshell.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,15 +1421,17 @@ See [Regexp.Expand](https://pkg.go.dev/regexp#Regexp.Expand) for replacement syn
14211421

14221422
## Variables
14231423

1424-
You can store to several variables in one go by separating the store tokens with commas. Values are consumed from the stack for each store, and an optional trailing comma is ignored.
1424+
You can store to several variables in one go by separating the store tokens with commas.
1425+
Values are consumed from the stack for each store, and an optional trailing comma is ignored.
1426+
When storing with the comma separated list, make sure you understand the ordering!
14251427

14261428
```mshell
14271429
# Storing
14281430
10 my_var!
14291431
# Retrieving
14301432
@my_var
14311433
1432-
# Storing multiple values at once
1434+
# Storing multiple values at once. Note the order!
14331435
1 2 3 a!, b!, c! # a is 1, b is 2, c is 3.
14341436
@a @b @c
14351437

lib/std.msh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def sumInt ([int] -- int) sum end
163163
# [s]tdin [l]ines
164164
def sl (-- [str]) stdin lines end
165165

166-
def ttFile (str -- [[str]])
166+
def ttFile (str|path -- [[str]])
167167
readFile lines (tab split) map
168168
end
169169

0 commit comments

Comments
 (0)