Browse Source

docs(thirthtimeischarm) : Fixe mistakes after review

DEV-3179-new-go-exercise-thirdtimeisacharm
zainab Dnaya 2 years ago committed by GitHub
parent
commit
3d5d905a0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      subjects/thirdtimeisacharm/README.md

12
subjects/thirdtimeisacharm/README.md

@ -1,12 +1,12 @@
# ThirdTimeIsACharm
#thirdtimeisacharm
### Instructions
Write a function `ThirdTimeIsACharm()` that takes a string and returns another string with every third character.
Write a function `ThirdTimeIsACharm` that takes a string and returns another string with every third character.
- Prints the Output followed by newline `\n`.
- If the string is empty, return newline `\n`.
- If there is no third character, return `\n`
- If there is no third character, return newline `\n.
### Expected function
@ -17,14 +17,12 @@ func ThirdTimeIsACharm(str string) string {
### Usage
Here is a possible program to test your function:
Here is a possible program to test your function :
```go
package main
import (
"fmt"
)
import "fmt"
func main() {
fmt.Print(ThirdTimeIsACharm("123456789"))

Loading…
Cancel
Save