Documentation uses terms "source" and "target" to describe "self" and "other" #480
Labels
No labels
bug
good first issue
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-bitflags/bitflags#480
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The rustdoc reference looks like this:
The function takes
selfandotherarguments, but the doc comment defines it in terms of asourceandtarget. It's not specified which argument is the source and which one is the target. Is itsource.contains(target)ortarget.contains(source)?Thanks for the note @kornelski. This could definitely be improved. The wording in the docs is to match what's in the spec so the naming is consistent, but would simply be better written as whether
selfcontainsother.I interact with the library through rust-analyzer, so I haven't even known there was a spec. Jump to definition unfortunately jumps to an opaque macro that doesn't even show the boolean algebra behind it.