Skip to content

Commit

Permalink
Fixed the sameple code in DocC and README
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterJ93 committed Feb 23, 2025
1 parent 209b473 commit 01daae3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Task {
do {
try await config.authenticate()

let atProto = try await ATProtoKit(sessionConfiguration: config)
let atProto = await ATProtoKit(sessionConfiguration: config)
let atProtoBluesky = ATProtoBluesky(atProtoKitInstance: atProto)

let postResult = try await atProtoBluesky.createPostRecord(text: "Hello Bluesky!")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ You can then create an ``ATProtoKit/ATProtoKit`` instance, where you can insert

```swift
Task {
let atProto = try await ATProtoKit(sessionConfiguration: config)
let atProto = await ATProtoKit(sessionConfiguration: config)
}
```

Expand Down
2 changes: 1 addition & 1 deletion Sources/ATProtoKit/ATProtoKit.docc/Overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Task {
do {
try await config.authenticate()

let atProto = try await ATProtoKit(sessionConfiguration: config)
let atProto = await ATProtoKit(sessionConfiguration: config)
let atProtoBluesky = ATProtoBluesky(atProtoKitInstance: atProto)

let postResult = try await atProtoBluesky.createPostRecord(text: "Hello Bluesky!")
Expand Down
2 changes: 1 addition & 1 deletion Sources/ATProtoKit/ATProtoKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ extension ATProtoKitConfiguration {
///
/// print("Access token: \(session.accessToken)")
///
/// let atProtoKit = try await ATProtoKit(sessionConfiguration: config)
/// let atProtoKit = await ATProtoKit(sessionConfiguration: config)
/// } catch {
/// print("Error: \(error)")
/// }
Expand Down

0 comments on commit 01daae3

Please sign in to comment.