Skip to content

Commit 5b30f78

Browse files
authored
[stdlib] Fix typos in Dictionary.swift
Hi, I fixed several typos in Dictionary.swift file(#Line: 347, 1194). - origin comments ```swift // #347 // Prints "The 'star' image is a glyph.") // #1194 // Prints "No value found for that key."" ``` - changed comments ```swift // #347 // Prints "The 'star' image is a glyph.") // I thought the ' ) ' character was unnecessary, so I removed it. // #1194 // Prints "No value found for that key."" // I thought the ' " ' character was unnecessary, so I removed it. ```
1 parent 4987c3b commit 5b30f78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/Dictionary.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@
344344
/// } else {
345345
/// print("No glyphs found!")
346346
/// }
347-
/// // Prints "The 'star' image is a glyph.")
347+
/// // Prints "The 'star' image is a glyph."
348348
///
349349
/// Note that in this example, `imagePaths` is subscripted using a dictionary
350350
/// index. Unlike the key-based subscript, the index-based subscript returns
@@ -1191,7 +1191,7 @@ extension Dictionary {
11911191
/// } else {
11921192
/// print("No value found for that key.")
11931193
/// }
1194-
/// // Prints "No value found for that key.""
1194+
/// // Prints "No value found for that key."
11951195
///
11961196
/// - Parameter key: The key to remove along with its associated value.
11971197
/// - Returns: The value that was removed, or `nil` if the key was not

0 commit comments

Comments
 (0)