mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 05:53:59 +00:00
Add a helpful comment warning of a nonsense result from tok_last
This commit is contained in:
parent
daa856ed47
commit
196a7c9d18
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ void tok_next(tokenizer_t *tok);
|
||||||
enum token_type tok_last_type(tokenizer_t *tok);
|
enum token_type tok_last_type(tokenizer_t *tok);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the last token string. The string should not be freed by the caller.
|
Returns the last token string. The string should not be freed by the caller. This returns nonsense results for some token types, like TOK_END.
|
||||||
*/
|
*/
|
||||||
const wchar_t *tok_last(tokenizer_t *tok);
|
const wchar_t *tok_last(tokenizer_t *tok);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue