Skip to content

Commit

Permalink
edit: map / can't use go code format in {{hint}}
Browse files Browse the repository at this point in the history
  • Loading branch information
ar-mokhtari committed Dec 4, 2022
1 parent 0525f6c commit 814ff77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/chapter 1/1.8-map.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ map[KeyType]ValueType

{{< hint info >}}
در مپ می‌توان برای کلید از مقدار داخل یک متغیر بهره برد.
{{< /hint >}}
```go
package main

Expand All @@ -47,7 +48,6 @@ map[KeyType]ValueType
}

```
{{< /hint >}}

- مقدار: محتوی داده‌ای است که کلید به آن اشاره می‌کند و برخلاف کلید، هیچ محدودیت برای انتخاب «نوع» آن وجود ندارد، به‌عنوان نمونه می‌توان از یک مپ دیگر برای مقدار استفاده کرد.
({{< tooltip text="مپ‌های تودرتو" note="Nested Map" >}})
Expand Down

0 comments on commit 814ff77

Please sign in to comment.