Skip to content

Commit

Permalink
Change &str to &String. Fixes #225
Browse files Browse the repository at this point in the history
  • Loading branch information
willcrichton committed Jan 1, 2025
1 parent 7353259 commit c9f03b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quizzes/ch04-02-references-sec2-perms.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ prompt.prompt = """
Consider the permissions in the following program:
```aquascope,permissions,stepper,boundaries
fn get_first(v: &Vec<String>) -> &str {
fn get_first(v: &Vec<String>) -> &String {
&v[0]
}
Expand Down

0 comments on commit c9f03b7

Please sign in to comment.