Skip to content

Commit

Permalink
task update
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodesdev committed Jun 9, 2024
1 parent 02cb3ab commit b52cf40
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions challenges/mutable-variables/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@ In this challenge, you will declare and use **mutable variables in Rust**. You w

## Your task

In this challenge, you need to declare one mutable variable inside the function using the `let mut` keyword:

- `text` with an initial value of `"hello"`
- Print exactly `"Text is hello"` to the console using the `println!` macro.
- Mutate the variable to `"bye"`.
- Print exactly `"Text is bye"` to the console using the `println!` macro.
- Declare variable `text` with an initial value of anything you like. Use `let mut` to make it mutable.
- Re assign the variable `text` to something else of your choice.
- Return the final value of the variable.

### Println! Macro
Expand Down

0 comments on commit b52cf40

Please sign in to comment.