less / less/less-docs

Permutation of 4 is 24, not 16

Open
#553 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

docs
Dominant language
Less
Stars
680
Forks
442
PR merge metrics
No merged PRs in 30d

Description

Issue:
Permutation of 4 is 24, not 16.

Document link:
https://github.com/less/less-docs/blob/484055f839c15aba1ec660fc1e068984c3dccef6/content/features/parent-selectors.md

Document lines:
& can also be used to generate every possible permutation of selectors in a comma separated list:
p, a, ul, li {
....
}
This expands to all possible (16) combinations of the specified elements:

The above document lines say permutation of 4(p,a,ul,li) is 16 which i think is not correct.

Proposal:
Instead of using the word "permutation", we can use something else. My suggestion would be to frame the sentence to something like
"& can also be used to generate every possible combination of selectors in a comma-separated list:"
and
"This expands to all possible combinations of the specified elements:"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open content/features/parent-selectors.md at the linked passage and review the wording about permutations of p, a, ul, and li. Replace the inaccurate terminology with the proposed combination wording, then verify that the documented example no longer claims that four selectors produce 16 permutations.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.