terminal-util: fix typo

Follow-up for b27f791691.
This commit is contained in:
Yu Watanabe
2025-04-07 16:34:07 +09:00
parent 71cc90aabc
commit 79ef03740d
+1 -1
View File
@@ -1096,7 +1096,7 @@ bool tty_is_vc(const char *tty) {
/* NB: for >= 0 values no range check is conducted here, on the assumption that the caller will
* either extract vtnr through vtnr_from_tty() later where ERANGE would be reported, or doesn't care
* about whether it's strictly valid, but only asking "does this fall into the vt catogory?", for which
* about whether it's strictly valid, but only asking "does this fall into the vt category?", for which
* "yes" seems to be a better answer. */
return vtnr_from_tty_raw(tty, /* ret = */ NULL) >= 0;