From 3083bc39178767418f24b1951692987c4af7a117 Mon Sep 17 00:00:00 2001 From: Ahmad Amin Date: Fri, 13 Oct 2023 12:40:03 +0500 Subject: [PATCH] "Fixed a typo in the documentation." (#697) --- concepts/dictionaries/introduction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/concepts/dictionaries/introduction.md b/concepts/dictionaries/introduction.md index 4788b153f..738d6f0f8 100644 --- a/concepts/dictionaries/introduction.md +++ b/concepts/dictionaries/introduction.md @@ -50,7 +50,7 @@ constants["Gelfond's"] = 23.140692 // compiler error: "Cannot assign through subscript: 'constants' is a 'let' constant" ``` -Like arrays, the _key: value_ pairs of a dictionary can be stepped through one at a time using a for-in loop. This type of loop takes each _key: value_ pair of the dictionary and binds the pair to a specified name for further processing inside the loop body. The pair is represented as a tuple and can be decomposed like other tuples to assign each element to a name. For example, to print out the address book, on can write: +Like arrays, the _key: value_ pairs of a dictionary can be stepped through one at a time using a for-in loop. This type of loop takes each _key: value_ pair of the dictionary and binds the pair to a specified name for further processing inside the loop body. The pair is represented as a tuple and can be decomposed like other tuples to assign each element to a name. For example, to print out the address book, one can write: ```swift for (name, address) in addresses {