Skip to content

Commit 050a1f1

Browse files
glbrnttgjcairo
andauthored
Apply suggestions from code review
Co-authored-by: Gus Cairo <[email protected]>
1 parent cf5b9f3 commit 050a1f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/GRPCProtobuf/Errors/ErrorDetails.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public struct ErrorDetails: Sendable, Hashable {
139139
/// Create a ``RequestInfo-swift.struct`` detail.
140140
///
141141
/// - Parameters:
142-
/// - requestID: /// An opaque string that should only be interpreted by the service generating
142+
/// - requestID: An opaque string that should only be interpreted by the service generating
143143
/// it. For example, it can be used to identify requests in the service's logs.
144144
/// - servingData: Any data that was used to serve this request. For example, an encrypted
145145
/// stack trace that can be sent back to the service provider for debugging.
@@ -301,7 +301,7 @@ extension ErrorDetails {
301301

302302
/// Returns `Google_Protobuf_Any` if applicable.
303303
///
304-
/// Calling this **doesn't** encode a detail of another type into a `Google_Protobuf_Any`.
304+
/// - Important: Calling this **doesn't** encode a detail of another type into a `Google_Protobuf_Any`.
305305
public var any: Google_Protobuf_Any? {
306306
switch self.wrapped {
307307
case .any(let any):

Sources/GRPCProtobuf/Errors/GoogleRPCStatus.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public struct GoogleRPCStatus: Error {
4242

4343
/// A developer-facing error message, which should be in English.
4444
///
45-
/// Any user-facing error message should be localized and sent in the ``details`` field
45+
/// Any user-facing error message should be localized and sent in the `details` field
4646
/// or localized by the client.
4747
public var message: String
4848

0 commit comments

Comments
 (0)