Skip to content

Commit 111bf51

Browse files
refs05novalagung
andauthored
fix: incorrect function definition in example code (#294)
* Fix incorrect function definition in example code Replaces an anonymous function with a proper 'main' function in the Go code example to ensure correct usage and clarity for readers. * feat: add contributor --------- Co-authored-by: novalagung <hello@novalagung.com>
1 parent 8dd001c commit 111bf51

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

content/C-golang-redis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Salah satu benefit yang didapat dengan menggunakan `go-redis` library, adalah su
6666
Ok, sekarang tambahkan kode berikut:
6767

6868
```go
69-
func () {
69+
func main() {
7070
// ...
7171

7272
key := "key-1"

content/CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ Berikut merupakan *hall of fame* kontributor yang sudah berbaik hati menyisihkan
6868
1. [nekonako](https://github.com/nekonako)
6969
1. [nisacodelifings](https://github.com/nisacodelifings)
7070
1. [Nuevo Querto](https://github.com/NuevoQuerto)
71+
1. [Restu Fajar Sidhiq](https://github.com/refs05)
7172
1. [Rico](https://github.com/goldsky)
7273
1. [Rizky Zhang](https://github.com/rizkyzhang)
7374
1. [Ryan Febriansyah](https://github.com/sodrooome)

0 commit comments

Comments
 (0)