Skip to content

Commit 40327fd

Browse files
authored
docs: fix command strings example (#44)
Renamed tokenize function to tokenizeArgs
1 parent 3b07903 commit 40327fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ import {x} from 'tinyexec';
135135
import {tokenizeArgs} from 'args-tokenizer';
136136

137137
const commandString = 'echo "Hello, World!"';
138-
const [command, ...args] = tokenize(commandString);
138+
const [command, ...args] = tokenizeArgs(commandString);
139139
const result = await x(command, args);
140140

141141
result.stdout; // Hello, World!

0 commit comments

Comments
 (0)