From eacf7db6f34f7c884b2a736a35fa997299b34485 Mon Sep 17 00:00:00 2001
From: Anish <98446102+novanish@users.noreply.github.com>
Date: Fri, 23 Jun 2023 17:18:17 +0545
Subject: [PATCH 1/6] refactor: Update comment to use correct construct name
'Result' instead of 'Option'
Refactor the comment in the code to provide a more accurate description of the construct being used. Replace the mention of Option with Result.
---
exercises/error_handling/errors1.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/exercises/error_handling/errors1.rs b/exercises/error_handling/errors1.rs
index 0ba59a57a6..13d2724cb2 100644
--- a/exercises/error_handling/errors1.rs
+++ b/exercises/error_handling/errors1.rs
@@ -3,7 +3,7 @@
// This function refuses to generate text to be printed on a nametag if you pass
// it an empty string. It'd be nicer if it explained what the problem was,
// instead of just sometimes returning `None`. Thankfully, Rust has a similar
-// construct to `Option` that can be used to express error conditions. Let's use
+// construct to `Result` that can be used to express error conditions. Let's use
// it!
//
// Execute `rustlings hint errors1` or use the `hint` watch subcommand for a
From f03a915c750a47cfbabb13413e200d82f0e45405 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Mon, 26 Jun 2023 07:58:23 +0000
Subject: [PATCH 2/6] docs: update AUTHORS.md [skip ci]
---
AUTHORS.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/AUTHORS.md b/AUTHORS.md
index ba208034f8..c7ef5209b4 100644
--- a/AUTHORS.md
+++ b/AUTHORS.md
@@ -313,6 +313,7 @@ authors.
Robert Fry 🖋 |
tajo48 🖋 |
+ Anish 🖋 |
From 2e4022dd730869c9065f8b9f1aa031cbb0b2f0fa Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Mon, 26 Jun 2023 07:58:24 +0000
Subject: [PATCH 3/6] docs: update .all-contributorsrc [skip ci]
---
.all-contributorsrc | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/.all-contributorsrc b/.all-contributorsrc
index a8b82aebb3..0c985add04 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -2208,6 +2208,15 @@
"contributions": [
"content"
]
+ },
+ {
+ "login": "novanish",
+ "name": "Anish",
+ "avatar_url": "https://avatars.githubusercontent.com/u/98446102?v=4",
+ "profile": "https://anishchhetri.com.np",
+ "contributions": [
+ "content"
+ ]
}
],
"contributorsPerLine": 8,
From 405b32e77a6643f08e5bc895d6d2d1e684d47324 Mon Sep 17 00:00:00 2001
From: vnprc <9425366+vnprc@users.noreply.github.com>
Date: Mon, 26 Jun 2023 09:17:39 -0400
Subject: [PATCH 4/6] chore: use correct line number in strings2.rs hint
---
info.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/info.toml b/info.toml
index b4fd8ffa08..e4863cbf89 100644
--- a/info.toml
+++ b/info.toml
@@ -439,7 +439,7 @@ mode = "compile"
hint = """
Yes, it would be really easy to fix this by just changing the value bound to `word` to be a
string slice instead of a `String`, wouldn't it?? There is a way to add one character to line
-9, though, that will coerce the `String` into a string slice.
+12, though, that will coerce the `String` into a string slice.
Side note: If you're interested in learning about how this kind of reference conversion works, you can jump ahead in the book and read this part in the smart pointers chapter: https://doc.rust-lang.org/stable/book/ch15-02-deref.html#implicit-deref-coercions-with-functions-and-methods"""
From 47b3a531325932a0051b0dba91c3a8fd86aa2fe1 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Mon, 26 Jun 2023 13:19:52 +0000
Subject: [PATCH 5/6] docs: update AUTHORS.md [skip ci]
---
AUTHORS.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/AUTHORS.md b/AUTHORS.md
index c7ef5209b4..4e7771747f 100644
--- a/AUTHORS.md
+++ b/AUTHORS.md
@@ -314,6 +314,7 @@ authors.
Robert Fry 🖋 |
tajo48 🖋 |
Anish 🖋 |
+ vnprc 🖋 |
From a46d42f45e7052fbadb457cd303ff62f5a641555 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Mon, 26 Jun 2023 13:19:53 +0000
Subject: [PATCH 6/6] docs: update .all-contributorsrc [skip ci]
---
.all-contributorsrc | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/.all-contributorsrc b/.all-contributorsrc
index 0c985add04..d02fe784bd 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -2217,6 +2217,15 @@
"contributions": [
"content"
]
+ },
+ {
+ "login": "vnprc",
+ "name": "vnprc",
+ "avatar_url": "https://avatars.githubusercontent.com/u/9425366?v=4",
+ "profile": "https://github.com/vnprc",
+ "contributions": [
+ "content"
+ ]
}
],
"contributorsPerLine": 8,