This repository has been archived on 2023-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
rustlings-exercises-completed/exercises/primitive_types
Dylan Nugent 5b1e673cec fix(primitive_types4): Fail on a slice covering the wrong area
This commit converts primitive_types4 to a test and asserts that the
slice given is equal to the expected slice.

The intent of the primitive_types4 exercise appears to be to ensure the
user understands inclusive and exclusive bounds as well as slice syntax.
`rustlings` commands using `compile` do not verify that a specific
println is reached and, in the case of `watch` and `verify` (but not
`run`), they do not output the `println`s at all.

This fix is semantically similar to #198. It does not take a stance on
the correct way to handle this for all exercises; see #127. There are
likely other exercises whose intent are masked by this issue.
2019-08-17 17:16:19 -07:00
..
primitive_types1.rs Fix permissions on source files 2019-03-23 14:19:42 -06:00
primitive_types2.rs Fix permissions on source files 2019-03-23 14:19:42 -06:00
primitive_types3.rs Fix permissions on source files 2019-03-23 14:19:42 -06:00
primitive_types4.rs fix(primitive_types4): Fail on a slice covering the wrong area 2019-08-17 17:16:19 -07:00
primitive_types5.rs chore: Fix a couple broken book links 2019-06-11 07:13:05 -07:00
primitive_types6.rs chore: Fix a couple broken book links 2019-06-11 07:13:05 -07:00
README.md fix(primitive_types4): Fail on a slice covering the wrong area 2019-08-17 17:16:19 -07:00

Primitive Types

Rust has a couple of basic types that are directly implemented into the compiler. In this section, we'll go through the most important ones.

Book Sections