if expressionnel: #8

Open
opened 2022-01-13 14:57:03 +01:00 by darnuria · 1 comment
darnuria commented 2022-01-13 14:57:03 +01:00 (Migrated from code.up8.edu)
        let invitation;
        if self.allow_open_invite {
            invitation = "Vrai";
        } else {
            invitation = "Faux";
        }

autant faire:

        let invitation = if self.allow_open_invite { "Vrai" } else { "Faux" };
```rust let invitation; if self.allow_open_invite { invitation = "Vrai"; } else { invitation = "Faux"; } ``` autant faire: ```rust let invitation = if self.allow_open_invite { "Vrai" } else { "Faux" }; ```
darnuria commented 2022-01-13 14:57:12 +01:00 (Migrated from code.up8.edu)

changed the description

changed the description
This repo is archived. You cannot comment on issues.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Paris8/MatterBot#8
No description provided.