Skip to content

Make wording for !or-gotcha more explicit #2128

@mustafaquraish

Description

@mustafaquraish

Currently the or-gotcha tag embed looks like:

image

While the embed is helpful, the first thing the eye is drawn to the first code block, and not the actual text around it. It's very tempting to just look at just the code examples, so I think adding a comment to the first code block to the following might make it clear at a glance that it's meant to be the incorrect way to do it:

# Incorrect
if favorite_fruit == 'grapefruit' or 'lemon':
    print("That's a weird favorite fruit to have.")

Should be a very trivial change, I'm happy to make a PR if you all agree it's worth it

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: tagsRelated to bot tagsstatus: approvedThe issue has received a core developer's approvalt: enhancementChanges or improvements to existing features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions