From 53f7ded2f2892765b01c75cef5092662725d444d Mon Sep 17 00:00:00 2001 From: mikysett Date: Tue, 15 Nov 2022 11:12:22 +0000 Subject: [PATCH] refactor(negative_spelling): improve function name readability --- subjects/negative_spelling/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/subjects/negative_spelling/README.md b/subjects/negative_spelling/README.md index 34fa64f35..2a5fc0af8 100644 --- a/subjects/negative_spelling/README.md +++ b/subjects/negative_spelling/README.md @@ -2,7 +2,7 @@ ### Instructions -In this exercise, you'll create the function `neg_spell` that will spell a negative number. +In this exercise, you'll create the function `negative_spell` that will spell a negative number. Here are some examples of what your function should return: @@ -17,7 +17,7 @@ Here are some examples of what your function should return: ### Expected function ```rust -pub fn neg_spell(n: i64) -> String { +pub fn negative_spell(n: i64) -> String { } ``` @@ -27,11 +27,11 @@ pub fn neg_spell(n: i64) -> String { Here is a program to test your function. ```rust -use spelling::*; +use negative_spelling::*; fn main() { - println!("{}", neg_spell(-1234)); - println!("{}", neg_spell(100)); + println!("{}", negative_spell(-1234)); + println!("{}", negative_spell(100)); } ```