Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion exercises/09_strings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ to identify and create them, as well as use them.

## Further information

- [Strings](https://doc.rust-lang.org/book/ch08-02-strings.html)
- [Strings (Rust Book)](https://doc.rust-lang.org/book/ch08-02-strings.html)
- [`str` methods](https://doc.rust-lang.org/std/primitive.str.html)
- [`String` methods](https://doc.rust-lang.org/std/string/struct.String.html)
4 changes: 2 additions & 2 deletions exercises/18_iterators/iterators1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ fn main() {
mod tests {
#[test]
fn iterators() {
let my_fav_fruits = ["banana", "custard apple", "avocado", "peach", "raspberry"];
let my_fav_fruits = &["banana", "custard apple", "avocado", "peach", "raspberry"];

// TODO: Create an iterator over the array.
// TODO: Create an iterator over the slice.
let mut fav_fruits_iterator = todo!();

assert_eq!(fav_fruits_iterator.next(), Some(&"banana"));
Expand Down
2 changes: 1 addition & 1 deletion rustlings-macros/info.toml
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ dir = "08_enums"
test = false
hint = """
You can create enumerations that have different variants with different types
such as anonymous structs, structs, a single string, tuples, no data, etc."""
such as struct-like, tuple-like and unit-only variants."""

[[exercises]]
name = "enums3"
Expand Down
4 changes: 2 additions & 2 deletions solutions/18_iterators/iterators1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ fn main() {
mod tests {
#[test]
fn iterators() {
let my_fav_fruits = ["banana", "custard apple", "avocado", "peach", "raspberry"];
let my_fav_fruits = &["banana", "custard apple", "avocado", "peach", "raspberry"];

// Create an iterator over the array.
// Create an iterator over the slice.
let mut fav_fruits_iterator = my_fav_fruits.iter();

assert_eq!(fav_fruits_iterator.next(), Some(&"banana"));
Expand Down
2 changes: 2 additions & 0 deletions website/content/community-exercises/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ title = "Community Exercises"

- 🇯🇵 [Japanese Rustlings](https://github.com/sotanengel/rustlings-jp):A Japanese translation of the Rustlings exercises.
- 🇨🇳 [Simplified Chinese Rustlings](https://github.com/SandmeyerX/rustlings-zh-cn): A simplified Chinese translation of the Rustlings exercises.
- 🇺🇦 [Rustlings in Ukrainian](https://github.com/noroutine/rustlings-ua): Translation of the Rustlings exercises in Ukrainian.
- 🇰🇷 [Korean Rustlings](https://github.com/eoncheole/rustlings-kr): A Korean translation of the Rustlings exercises.

> You can use the same `rustlings` program that you installed with `cargo install rustlings` to run community exercises.

Expand Down
4 changes: 4 additions & 0 deletions website/content/setup/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ While working with Rustlings, please use a modern terminal for the best user exp
The default terminal on Linux and Mac should be sufficient.
On Windows, we recommend the [Windows Terminal](https://aka.ms/terminal).

### Offline documentation

Whenever you're working on Rustlings offline, you can access a local copy of the standard library documentation by running `rustup doc --std`.

## Usage

After being done with the setup, visit the [**usage**](@/usage/index.md) page for some info about using Rustlings 🚀
Loading