Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated typo's in multiple documents. #214

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/GoogleAI/ModelContent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import Foundation
/// may comprise multiple heterogeneous ``ModelContent/Part``s.
@available(iOS 15.0, macOS 11.0, macCatalyst 15.0, *)
public struct ModelContent: Equatable {
/// A discrete piece of data in a media format intepretable by an AI model. Within a single value
/// A discrete piece of data in a media format interpretable by an AI model. Within a single value
/// of ``Part``, different data types may not mix.
public enum Part: Equatable {
/// Text value.
Expand Down
2 changes: 1 addition & 1 deletion Sources/GoogleAI/Safety.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public struct SafetyRating: Equatable, Hashable {

/// The model-generated probability that a given piece of content falls under the harm category
/// described in ``category``. This does not
/// indiciate the severity of harm for a piece of content. See ``HarmProbability`` for a list of
/// indicate the severity of harm for a piece of content. See ``HarmProbability`` for a list of
/// possible values.
public let probability: HarmProbability

Expand Down
6 changes: 3 additions & 3 deletions Tests/GoogleAITests/PartsRepresentableTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ final class PartsRepresentableTests: XCTestCase {
return
}
}
XCTFail("Expected model content from invlaid image to error")
XCTFail("Expected model content from invalid image to error")
}

#if canImport(UIKit)
Expand All @@ -93,7 +93,7 @@ final class PartsRepresentableTests: XCTestCase {
return
}
}
XCTFail("Expected model content from invlaid image to error")
XCTFail("Expected model content from invalid image to error")
}

func testModelContentFromUIImageIsNotEmpty() throws {
Expand Down Expand Up @@ -132,7 +132,7 @@ final class PartsRepresentableTests: XCTestCase {
return
}
}
XCTFail("Expected model content from invlaid image to error")
XCTFail("Expected model content from invalid image to error")
}
#endif
}
Loading