From d709c6491bfee51f9d51b7d190cf51d74d35bd3b Mon Sep 17 00:00:00 2001 From: lee Date: Wed, 19 Jun 2019 15:14:21 +0100 Subject: [PATCH] fixi activebits readme from hackaton --- subjects/activebits.en.md | 12 ++++++------ subjects/activebits.fr.md | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/subjects/activebits.en.md b/subjects/activebits.en.md index 6722ffcc9..614186e33 100644 --- a/subjects/activebits.en.md +++ b/subjects/activebits.en.md @@ -2,7 +2,7 @@ ### Instructions -Write a function, ActiveBitsthat, that returns the number of active bits (bits with the value 1) in the binary representation of an integer number. +Write a function, `ActiveBits`, that returns the number of active bits (bits with the value 1) in the binary representation of an integer number. The function must have the next signature. @@ -23,11 +23,11 @@ package main import ( "fmt" - student ".." + piscine ".." ) func main() { - nbits := student.ActiveBits(7) + nbits := piscine.ActiveBits(7) fmt.Println(nbits) } ``` @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/student/activebits$ go build -student@ubuntu:~/student/activebits$ ./activebits +student@ubuntu:~/piscine/test$ go build +student@ubuntu:~/piscine/test$ ./test 10 -student@ubuntu:~/student/activebits$ +student@ubuntu:~/piscine/test$ ``` diff --git a/subjects/activebits.fr.md b/subjects/activebits.fr.md index 6722ffcc9..614186e33 100644 --- a/subjects/activebits.fr.md +++ b/subjects/activebits.fr.md @@ -2,7 +2,7 @@ ### Instructions -Write a function, ActiveBitsthat, that returns the number of active bits (bits with the value 1) in the binary representation of an integer number. +Write a function, `ActiveBits`, that returns the number of active bits (bits with the value 1) in the binary representation of an integer number. The function must have the next signature. @@ -23,11 +23,11 @@ package main import ( "fmt" - student ".." + piscine ".." ) func main() { - nbits := student.ActiveBits(7) + nbits := piscine.ActiveBits(7) fmt.Println(nbits) } ``` @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/student/activebits$ go build -student@ubuntu:~/student/activebits$ ./activebits +student@ubuntu:~/piscine/test$ go build +student@ubuntu:~/piscine/test$ ./test 10 -student@ubuntu:~/student/activebits$ +student@ubuntu:~/piscine/test$ ```