From 8450a159e4d9570eba7e2e4994a995e456ab590c Mon Sep 17 00:00:00 2001 From: jrosendo Date: Tue, 8 Nov 2022 16:52:39 +0000 Subject: [PATCH] docs(weareunique): fixed subject - fix indentation and grammar --- subjects/weareunique/README.md | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/subjects/weareunique/README.md b/subjects/weareunique/README.md index 5401d11c..deda07b8 100644 --- a/subjects/weareunique/README.md +++ b/subjects/weareunique/README.md @@ -1,27 +1,24 @@ -## Weareunique +## weareunique ### Instructions Write a function that takes two strings and returns the number of characters that are not included in both, without doubles. -- If there is no unique charachters return 0. -- If both strings are empty return -1. +- If there is no unique characters return `0`. +- If both strings are empty return `-1`. ### Expected function ```go - -func Weareunique(str1 , str2 string) int { +func WeAreUnique(str1 , str2 string) int { } - ``` ### Usage -Here is a possible program to test your function : +Here is a possible program to test your function: ```go - package main import ( @@ -29,24 +26,23 @@ import ( ) func main() { - arr := [][]string{ {"foo", "boo"}, - {"",""}, + {"", ""}, {"abc", "def"}, {"hello", "yoall"}, {"everyone", ""}, {"hello world", "fam"}, - {"pomme","pomme"}, + {"pomme", "pomme"}, {"", "exam"}, } for _, v := range arr { - fmt.Println(Weareunique(v[0], v[1])) + fmt.Println(WeAreUnique(v[0], v[1])) } } ``` -And its output : +And its output: ```console $ go run .