diff --git a/subjects/activebits.en.md b/subjects/activebits.en.md index 6722ffcc..96354229 100644 --- a/subjects/activebits.en.md +++ b/subjects/activebits.en.md @@ -2,9 +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. - -The function must have the next signature. +Write a function, `ActiveBits`, that returns the number of active bits (bits with the value 1) in the binary representation of an integer number. ### Expected function @@ -23,11 +21,11 @@ package main import ( "fmt" - student ".." + piscine ".." ) func main() { - nbits := student.ActiveBits(7) + nbits := piscine.ActiveBits(7) fmt.Println(nbits) } ``` @@ -35,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/student/activebits$ go build -student@ubuntu:~/student/activebits$ ./activebits -10 -student@ubuntu:~/student/activebits$ +student@ubuntu:~/piscine/test$ go build +student@ubuntu:~/piscine/test$ ./test +3 +student@ubuntu:~/piscine/test$ ``` diff --git a/subjects/activebits.fr.md b/subjects/activebits.fr.md index 6722ffcc..96354229 100644 --- a/subjects/activebits.fr.md +++ b/subjects/activebits.fr.md @@ -2,9 +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. - -The function must have the next signature. +Write a function, `ActiveBits`, that returns the number of active bits (bits with the value 1) in the binary representation of an integer number. ### Expected function @@ -23,11 +21,11 @@ package main import ( "fmt" - student ".." + piscine ".." ) func main() { - nbits := student.ActiveBits(7) + nbits := piscine.ActiveBits(7) fmt.Println(nbits) } ``` @@ -35,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/student/activebits$ go build -student@ubuntu:~/student/activebits$ ./activebits -10 -student@ubuntu:~/student/activebits$ +student@ubuntu:~/piscine/test$ go build +student@ubuntu:~/piscine/test$ ./test +3 +student@ubuntu:~/piscine/test$ ```