doc: add note on variants in rule names
authorRan Benita <ran@unusedvar.com>
Sat, 27 Feb 2021 20:12:08 +0000 (22:12 +0200)
committerRan Benita <ran@unusedvar.com>
Sat, 27 Feb 2021 20:13:17 +0000 (22:13 +0200)
Fixes: https://github.com/xkbcommon/libxkbcommon/issues/208
Signed-off-by: Ran Benita <ran@unusedvar.com>
xkbcommon/xkbcommon.h

index 0fd0318..f52dcfa 100644 (file)
@@ -355,6 +355,9 @@ struct xkb_rule_names {
      * A comma separated list of variants, one per layout, which may
      * modify or augment the respective layout in various ways.
      *
+     * Generally, should either be empty or have the same number of values
+     * as the number of layouts. You may use empty values as in "intl,,neo".
+     *
      * If NULL or the empty string "", and a default value is also used
      * for the layout, a default value is used.  Otherwise no variant is
      * used.