mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-01 15:14:26 +08:00
Add a helpful comment warning of a nonsense result from tok_last
This commit is contained in:
parent
daa856ed47
commit
196a7c9d18
|
@ -122,7 +122,7 @@ void tok_next(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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user