summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristram Oaten <tris@oat.sh>2023-10-20 17:31:56 +0100
committerTristram Oaten <tris@oat.sh>2023-10-20 17:31:56 +0100
commit2ac6606c6c747f32f8ead1ec3505e4cae6edfa5d (patch)
tree6c53620277e5ca09a0131117bbeac675e1ec526b
parentc306792449ae3d9870f9991622590f757872c4e9 (diff)
fix(intro2): changed intro2 to be a name error, not a format string error.
-rw-r--r--exercises/00_intro/intro2.rs2
-rw-r--r--info.toml2
2 files changed, 2 insertions, 2 deletions
diff --git a/exercises/00_intro/intro2.rs b/exercises/00_intro/intro2.rs
index 990b20f..a28ad3d 100644
--- a/exercises/00_intro/intro2.rs
+++ b/exercises/00_intro/intro2.rs
@@ -8,5 +8,5 @@
// I AM NOT DONE
fn main() {
- println!("Hello {}!");
+ printline!("Hello there!")
}
diff --git a/info.toml b/info.toml
index bbfee14..44f344a 100644
--- a/info.toml
+++ b/info.toml
@@ -13,7 +13,7 @@ name = "intro2"
path = "exercises/00_intro/intro2.rs"
mode = "compile"
hint = """
-Add an argument after the format string."""
+The compiler is informing us that we've got the name of the print macro wrong, and has suggested an alternative."""
# VARIABLES