sunnie@lemmy.ca to Programmer Humor@programming.dev · 3 months agono amount of documentation can save users from themselveslemmy.caexternal-linkmessage-square75fedilinkarrow-up11.24Karrow-down113
arrow-up11.23Karrow-down1external-linkno amount of documentation can save users from themselveslemmy.casunnie@lemmy.ca to Programmer Humor@programming.dev · 3 months agomessage-square75fedilink
minus-squareVeganPizza69 Ⓥ@lemmy.worldlinkfedilinkarrow-up14·edit-23 months agoif ( parameters.teaMass <= TEA_BAG_WEIGHT ) { return "Error: incorrect input. Check if tea bag was inserted correctly into water container." }
minus-squaregnutrino@programming.devlinkfedilinkEnglisharrow-up9·edit-23 months agoAnd then a user starts adding weights to the label until it passes.
if ( parameters.teaMass <= TEA_BAG_WEIGHT ) { return "Error: incorrect input. Check if tea bag was inserted correctly into water container." }
And then a user starts adding weights to the label until it passes.
unlikely
#define TEA_BAG_WEIGHT 0