Kivanc Gunalp 68f8369cb4 Harden file_io exercises: remove magic number, dedupe paths
- file_io3: replace the hardcoded expected file size (117) with
  SAMPLE_TEXT.len(), so the check is derived from the actual content
  instead of an unexplained magic number.
- file_io3: use create_dir_all instead of create_dir, and add a
  sample_file_path() helper shared by main/create_required_files/
  file_cleanup to avoid three separate ad-hoc path constructions.
- file_io1/file_io2: hoist the sample text into a SAMPLE_TEXT constant
  used by both the exercise and its solution, removing duplicated
  literals.

No behavioral change: all three solutions were rebuilt and run
locally, producing identical output (file size still 117, permissions
still non-readonly) with no leftover files.
2026-07-26 15:27:53 +00:00
2025-05-16 11:09:06 +02:00
2026-06-23 12:31:03 +02:00
2026-05-11 12:09:01 +02:00
2026-04-07 00:15:33 +02:00
2025-05-16 11:29:32 +02:00
2026-03-30 17:34:13 +02:00
2024-09-13 15:07:53 +02:00
2025-01-01 22:07:41 +01:00
2026-05-11 12:09:01 +02:00
2026-04-06 16:58:15 +02:00
2025-08-18 12:01:21 +02:00
2026-03-30 17:34:13 +02:00
2024-04-25 19:58:55 +02:00
2016-03-27 15:57:49 -04:00

Rustlings 🦀

Small exercises to get you used to reading and writing Rust code - Recommended in parallel to reading the official Rust book 📚

Visit the website for a demo, info about setup and more:

➡️ rustlings.rust-lang.org ⬅️

Description
🦀 Small exercises to get you used to reading and writing Rust code!
Readme MIT 39 MiB
Languages
Rust 97.7%
HTML 1.9%
CSS 0.3%