From 1d7f2520017b7dad5446d973e84579f2fcf06ed1 Mon Sep 17 00:00:00 2001 From: lee Date: Tue, 16 Feb 2021 19:00:53 +0000 Subject: [PATCH] removal of crate chrono from profanity_filter --- subjects/profanity_filter/README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/subjects/profanity_filter/README.md b/subjects/profanity_filter/README.md index d2e48304..0b6e6989 100644 --- a/subjects/profanity_filter/README.md +++ b/subjects/profanity_filter/README.md @@ -11,9 +11,8 @@ must have the following elements: - content: String - user: String -- time_sent: String -The struct must also have a implementation of 2 **functions** associated with it: +The `struct` must also have a implementation of 2 **functions** associated with it: - `new`, which initializes the structure - `send_ms`, which only has its implementation type (**self**) as argument and returns an option: @@ -25,9 +24,6 @@ You will have to create two more **functions** that are not associated with any - receives as parameters the reference to the structure `Message` - and returns a tuple, containing a `bool` and a `string`: - This function will execute the function `send_ms` and if the result of the option is `None`, it should return (false, "ERROR: illegal").Otherwise it returns `true` and the content of the message sent. -- `date_format` which: - - creates and formats the date and time when the message was sent: - - The format should look like this: **Mon Oct 5 10:22:19 2020** ### Notions