From 4933dfc0ecf4eec58e7246e359b9829d3e705125 Mon Sep 17 00:00:00 2001 From: peetzweg/ <839848+peetzweg@users.noreply.github.com> Date: Fri, 28 Apr 2023 01:51:20 +0200 Subject: [PATCH] Fix: Referring to `match` Keyword not `match!` Macro (#16) * removes `!` after match, as it's refering to the match keyword instead of a macro. --- Cargo.toml | 2 +- src/d_pattern_matching.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 68b37c0..8d6f73c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,4 +12,4 @@ publish = false [dependencies] # There should be NO external additions here, per the honor code. -# If you want or need to create a local dependancy, you may do so. \ No newline at end of file +# If you want or need to create a local dependency, you may do so. \ No newline at end of file diff --git a/src/d_pattern_matching.rs b/src/d_pattern_matching.rs index 32a9d8e..c23d12b 100644 --- a/src/d_pattern_matching.rs +++ b/src/d_pattern_matching.rs @@ -2,7 +2,7 @@ //! statement of the `matches!()` macro, if you feel like having an "1-liner". //! //! You can try and write them imperatively at first as well, but at the end of the day, we want you -//! to write them using the `match!` or `matches!`. +//! to write them using the `match` keyword or the `matches!` macro. /// Returns true if the last two strings in the vector start with `PBA`. pub fn match_1(input: Vec) -> bool {