rustlings/changelog/5.6.0/index.html

154 lines
5.7 KiB
HTML

<!DOCTYPE html>
<html lang="en" id="oranda" class="dark">
<head>
<title>rustlings</title>
<meta property="og:url" content="https://rustlings.cool" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Small exercises to get you used to reading and writing Rust code!" />
<meta property="og:description" content="Small exercises to get you used to reading and writing Rust code!" />
<meta property="og:type" content="website" />
<meta property="og:title" content="rustlings" />
<meta http-equiv="Permissions-Policy" content="interest-cohort=()" />
<link rel="stylesheet" href="/oranda-v0.3.1.css" />
</head>
<body>
<div class="container">
<div class="page-body">
<div class="repo_banner">
<a href="https://github.com/rust-lang/rustlings">
<div class="github-icon" aria-hidden="true"></div>
Check out our GitHub!
</a>
</div>
<main>
<header>
<h1 class="title">rustlings</h1>
<nav class="nav">
<ul>
<li><a href="/">Home</a></li>
<li><a href="/artifacts/">Install</a></li>
<li><a href="/changelog/">Changelog</a></li>
</ul>
</nav>
</header>
<div>
<h1>Rustlings 5.6.0</h1>
<div class="releases-body">
<section class="release ">
<div class="release-info">
<span class="flex items-center gap-2">
<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor' class='w-6 h-6'>
<path stroke-linecap='round' stroke-linejoin='round' d='M9.568 3H5.25A2.25 2.25 0 003 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 005.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 009.568 3z' />
<path stroke-linecap='round' stroke-linejoin='round' d='M6 6h.008v.008H6V6z' /></svg>
5.6.0
</span>
<span class="flex items-center gap-2">
<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor' class='w-6 h-6'><path stroke-linecap='round' stroke-linejoin='round' d='M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5' /></svg>
Sep 4 2023 at 13:24 UTC
</span>
</div>
<div class="release-body">
<h4>Added</h4>
<ul>
<li>New exercise: <code>if3</code>, teaching the user about <code>if let</code> statements.</li>
<li><code>hashmaps2</code>: Added an extra test function to check if the amount of fruits is higher than zero.</li>
<li><code>enums3</code>: Added a test for <code>Message</code>.</li>
<li><code>if1</code>: Added a test case to check equal values.</li>
<li><code>if3</code>: Added a note specifying that there are no test changes needed.</li>
</ul>
<h4>Changed</h4>
<ul>
<li>Swapped the order of threads and smart pointer exercises.</li>
<li>Rewrote the CLI to use <code>clap</code> - it's matured much since we switched to <code>argh</code> :)</li>
<li><code>structs3</code>: Switched from i32 to u32.</li>
<li><code>move_semantics</code>: Switched 1-4 to tests, and rewrote them to be way simpler, while still teaching about the same
concepts.</li>
</ul>
<h4>Fixed</h4>
<ul>
<li><code>iterators5</code>:
<ul>
<li>Removed an outdated part of the hint.</li>
<li>Renamed variables to use snake_case.</li>
</ul>
</li>
<li><code>vecs2</code>: Updated the hint to reference the renamed loop variable.</li>
<li><code>enums3</code>: Changed message string in test so that it gets properly tested.</li>
<li><code>strings2</code>: Corrected line number in hint, then removed it (this both happened as part of this release cycle).</li>
<li><code>primitive_types4</code>: Updated hint to the correct ending index.</li>
<li><code>quiz1</code>: Removed duplicated sentence from exercise comments.</li>
<li><code>errors4</code>: Improved comment.</li>
<li><code>from_into</code>: Fixed test values.</li>
<li><code>cow1</code>: Added <code>.to_mut()</code> to distinguish from the previous test case.</li>
<li><code>threads2</code>: Updated hint text to reference the correct book heading.</li>
</ul>
<h4>Housekeeping</h4>
<ul>
<li>Cleaned up the explanation paragraphs at the start of each exercise.</li>
<li>Lots of Nix housekeeping that I don't feel qualified to write about!</li>
<li>Improved CI workflows, we're now testing on multiple platforms at once.</li>
</ul>
<p><a rel="noopener noreferrer"></a></p>
</div>
</section>
</div>
</div>
</main>
</div>
<footer>
<a href="https://github.com/rust-lang/rustlings"><div class="github-icon" aria-hidden="true"></div></a>
<span>
rustlings
</span>
</footer>
</div>
<script defer="true" data-domain="rustlings.cool" src="https://plausible.io/js/script.js"></script>
</body>
</html>