Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion discussions/d11_rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Modern language designed for concurrency; it's similar to C++ and OCaml, but doe
* Also used for things like iteration; when looping through list, get a series of references to elements in list
* One limitation: Can only either have `1 mutable ref` or `many immutable refs` at any given time
* This prevents weird write errors
* Exemplified by String class; `&str` is a read-only pointer to String, whereas String class is similar to array of chars
* Exemplified by String struct; `&str` is a read-only string slice, whereas String struct is similar to array of chars

Example with .iter():

Expand Down