Skip to content

Commit bc51f99

Browse files
committed
Docs
1 parent 6549199 commit bc51f99

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Example/CodeEditSourceEditorExample/CodeEditSourceEditorExample/Documents/CodeEditSourceEditorExampleDocument.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ struct CodeEditSourceEditorExampleDocument: FileDocument, @unchecked Sendable {
3333
NSString.stringEncoding(
3434
for: data,
3535
encodingOptions: [
36-
.allowLossyKey: false, // Fail if using lossy encoding.
36+
// Fail if using lossy encoding.
37+
.allowLossyKey: false,
38+
// In a real app, you'll want to handle more than just this encoding scheme. Check out CodeEdit's
39+
// implementation for a more involved solution.
3740
.suggestedEncodingsKey: [NSUTF8StringEncoding],
3841
.useOnlySuggestedEncodingsKey: true
3942
],

0 commit comments

Comments
 (0)