Skip to content

docs: fix old spelling of assert/assume APIs in docs #67464

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

Merged
merged 1 commit into from
Jul 24, 2023
Merged
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
4 changes: 2 additions & 2 deletions stdlib/public/Concurrency/Executor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ public protocol SerialExecutor: Executor {
///
/// This check is not used when performing executor switching.
///
/// This check is used when performing `preconditionTaskOnActorExecutor`, `preconditionTaskOnActorExecutor`,
/// `assumeOnActorExecutor` and similar APIs which assert about the same "exclusive serial execution context".
/// This check is used when performing ``Actor/assertIsolated()``, ``Actor/preconditionIsolated()``,
/// ``Actor/assumeIsolated()`` and similar APIs which assert about the same "exclusive serial execution context".
///
/// - Parameter other: the executor to compare with.
/// - Returns: true, if `self` and the `other` executor actually are mutually exclusive
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ actor Someone {

// FIXME: calling without await from main() should also succeed, we must set the executor while we're kicking off main

tests.test("preconditionTaskOnActorExecutor(main): from Main friend") {
tests.test("MainActor.preconditionIsolated(): from Main friend") {
await MainFriend().callCheckMainActor()
}

Expand Down