Skip to content

Commit

Permalink
mutable vars update
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodesdev committed Jun 9, 2024
1 parent 28caa2a commit 1bfda3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion challenges/mutable-variables/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ In this challenge, you will declare and use **mutable variables in Rust**. You w

## Your task

- Declare variable `text` with an initial value of anything you like. Use `let mut` to make it mutable.
- Declare variable `text` with an initial value of `"hello"`. 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.

Expand Down
2 changes: 1 addition & 1 deletion challenges/mutable-variables/src/starter.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub fn mutating_variables() -> String {
// 1. Declare a mutable variable `text` with any value
// 1. Declare a mutable variable `text` with value "hello"

// 2. Reassign the value of `text` to a new value

Expand Down

0 comments on commit 1bfda3d

Please sign in to comment.