mirror of
https://github.com/jarun/nnn.git
synced 2024-11-17 16:39:14 +00:00
fix incorrect comment
xextension() uses xmemrchr to find '.'
This commit is contained in:
parent
b9a1f1747f
commit
2df0cbd08b
|
@ -1033,7 +1033,7 @@ static inline bool is_prefix(const char *restrict str, const char *restrict pref
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The poor man's implementation of memrchr(3).
|
* The poor man's implementation of memrchr(3).
|
||||||
* We are only looking for '/' in this program.
|
* We are only looking for '/' and '.' in this program.
|
||||||
* And we are NOT expecting a '/' at the end.
|
* And we are NOT expecting a '/' at the end.
|
||||||
* Ideally 0 < n <= xstrlen(s).
|
* Ideally 0 < n <= xstrlen(s).
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue