Skip to content

Typos: test/* (misc folders in test) #75033

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

Closed
wants to merge 1 commit into from
Closed
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 test/APIJSON/availability.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public func callUnavailable() {}
public func availableOnlyOnActiveOS() {}

@available(tvOS, unavailable)
public func unavailableOnSeperateOS() {}
public func unavailableOnSeparateOS() {}

extension A {
@available(macOS 12, *)
Expand Down Expand Up @@ -114,7 +114,7 @@ extension A {
// CHECK-NEXT: "introduced": "10.10"
// CHECK-NEXT: },
// CHECK-NEXT: {
// CHECK-NEXT: "name": "_$s8MyModule23unavailableOnSeperateOSyyF",
// CHECK-NEXT: "name": "_$s8MyModule23unavailableOnSeparateOSyyF",
// CHECK-NEXT: "access": "public",
// CHECK-NEXT: "file": "SOURCE_DIR/test/APIJSON/availability.swift",
// CHECK-NEXT: "linkage": "exported"
Expand Down
2 changes: 1 addition & 1 deletion test/ASTGen/stmts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ struct GenericTypeWithYields<T> {
}
}

/* FXIME: yield(...) is parsed as an expression. ASTGen needs to onvert it to a statments.
/* FXIME: yield(...) is parsed as an expression. ASTGen needs to convert it to a statement.
subscript<U>(u: U) -> (T,U) {
_read {
yield ((storedProperty!, u))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ struct X15d : P15d { }
// FIXME: Better diagnostic here?
struct X15g : P15g { } // expected-error{{type 'X15g' does not conform to protocol 'P15g'}} expected-note {{add stubs for conformance}}

// Associated type defaults in overidden associated types that require
// Associated type defaults in overridden associated types that require
// substitution.
struct X16<T> { }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ protocol P2 {
}

struct S2<A>: P2 {
// These are not candiate witnesses for the requirement.
// These are not candidate witnesses for the requirement.
func f(_: Float, _: Array<A>) {}
func f(_: String, _: Array<A>) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// We need to ensure we are not dropping the substitution map during the
// derivative type calculation in sil combiner that causes errors in the
// subsequent optimizations as we're ending with invalid "recursive"
// subsitutions
// substitutions

import _Differentiation;

Expand Down
2 changes: 1 addition & 1 deletion test/CAS/bridging-header.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
// RUN: %target-swift-frontend -cache-compile-job -module-name Test -O -cas-path %t/cas @%t/MyApp.cmd %t/test.swift \
// RUN: -emit-module -o %t/Test.swiftmodule

/// Importing binary module with bridging header built from CAS from a regluar build.
/// Importing binary module with bridging header built from CAS from a regular build.
/// This should succeed even it is also importing a bridging header that shares same header dependencies (with proper header guard).
// RUN: %target-swift-frontend -typecheck -module-name User -swift-version 5 \
// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ void takeACompleteInterface(ForwardDeclaredInterface *param) {
[param doSomethingForwardDeclaredInterfacesCan];
}
void takeACompleteProtocol(NSObject<ForwardDeclaredProtocol> *param) {
NSLog(@"takeACompleteProcotol");
NSLog(@"takeACompleteProtocol");
[param doSomethingForwardDeclaredProtocolsCan];
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void takeASubscript(subscript *param);
subscript* returnASubscript();

// There is a Swift protocol, @objc protocol ShadowedProtocol, but
// since here we are refering to a class and not a protocol, this
// since here we are referring to a class and not a protocol, this
// shouldn't be an issue.
ShadowedProtocol* returnANativeObjCClassShadowedProtocol();

Expand Down
6 changes: 3 additions & 3 deletions test/ConstExtraction/ExtractCoerce.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// RUN: %target-swift-frontend -typecheck -emit-const-values-path %t/ExtractLiterals.swiftconstvalues -const-gather-protocols-file %t/protocols.json -primary-file %s
// RUN: cat %t/ExtractLiterals.swiftconstvalues 2>&1 | %FileCheck %s

struct CoercableThing : ExpressibleByStringLiteral {
struct CoercibleThing : ExpressibleByStringLiteral {
let thing: String
public init(unicodeScalarLiteral value: String) {
self.init(stringLiteral: value)
Expand All @@ -17,8 +17,8 @@ struct CoercableThing : ExpressibleByStringLiteral {

protocol MyProto {}
public struct TestStruct : MyProto {
let foo: CoercableThing = "foo"
let bar: CoercableThing = CoercableThing("bar")
let foo: CoercibleThing = "foo"
let bar: CoercibleThing = CoercibleThing("bar")
}

// CHECK: "label": "foo",
Expand Down
2 changes: 1 addition & 1 deletion test/Constraints/closures.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ _ = f0(X2(), {$0.g()})

func inoutToSharedConversions() {
func fooOW<T, U>(_ f : (__owned T) -> U) {}
fooOW({ (x : Int) in return Int(5) }) // defaut-to-'__owned' allowed
fooOW({ (x : Int) in return Int(5) }) // default-to-'__owned' allowed
fooOW({ (x : __owned Int) in return Int(5) }) // '__owned'-to-'__owned' allowed
fooOW({ (x : __shared Int) in return Int(5) }) // '__shared'-to-'__owned' allowed
fooOW({ (x : inout Int) in return Int(5) }) // expected-error {{cannot convert value of type '(inout Int) -> Int' to expected argument type '(__owned Int) -> Int'}}
Expand Down
2 changes: 1 addition & 1 deletion test/Constraints/diagnostics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func rdar21080030() {
if s.count() == 0 {} // expected-error {{cannot call value of non-function type 'Int'}}
}

// <rdar://problem/21248136> QoI: problem with return type inference mis-diagnosed as invalid arguments
// <rdar://problem/21248136> QoI: problem with return type inference misdiagnosed as invalid arguments
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please leave the spelling here alone, as you can't rename the record it refers to.

func r21248136<T>() -> T { preconditionFailure() } // expected-note 2 {{in call to function 'r21248136()'}}

r21248136() // expected-error {{generic parameter 'T' could not be inferred}}
Expand Down
2 changes: 1 addition & 1 deletion test/Constraints/dynamic_lookup.swift
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ class AmbiguityA : NSObject {
}


class AmbuguityB : NSObject {
class AmbiguityB : NSObject {
@objc class var testProp: B { get { B() } }
}

Expand Down
2 changes: 1 addition & 1 deletion test/DebugInfo/sroa_debug_value.sil
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sil hidden @foo : $@convention(thin) (Int64, Int64) -> Int64 {
bb0(%0 : $Int64, %1 : $Int64):
%4 = alloc_stack $MyStruct, var, name "my_struct", loc "sroa.swift":8:9, scope 2
debug_value %4 : $*MyStruct, let, name "my_copy", expr op_deref, loc "sroa.swift":7:10, scope 2
// Make sure SROA propagate the debug info to the splitted alloc_stack/debug_value instructions
// Make sure SROA propagate the debug info to the split alloc_stack/debug_value instructions
// CHECK-SROA: %[[ALLOC_X:[0-9]+]] = alloc_stack $Int64, var
// CHECK-SROA-SAME: (name "my_struct", loc "sroa.swift":8:9
// CHECK-SROA-SAME: type $MyStruct, expr op_fragment:#MyStruct.x
Expand Down
2 changes: 1 addition & 1 deletion test/DebugInfo/sroa_mem2reg.sil
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ bb0(%0 : $Int64, %1 : $Int64):
debug_value %0 : $Int64, let, name "in_x", argno 1, loc "sroa.swift":7:10, scope 2
debug_value %1 : $Int64, let, name "in_y", argno 2, loc "sroa.swift":7:21, scope 2
%4 = alloc_stack $MyStruct, var, name "my_struct", loc "sroa.swift":8:9, scope 2
// Make sure SROA propagate the debug info to the splitted alloc_stack instructions
// Make sure SROA propagate the debug info to the split alloc_stack instructions
// CHECK-SROA: alloc_stack $Int64, var
// CHECK-SROA-SAME: (name "my_struct", loc "sroa.swift":8:9
// CHECK-SROA-SAME: type $MyStruct, expr op_fragment:#MyStruct.x
Expand Down
2 changes: 1 addition & 1 deletion test/DebugInfo/sroa_mem2reg_tuple.sil
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ bb0(%0 : $Int64, %1 : $Int64):
debug_value %1 : $Int64, let, name "in_y", argno 2, loc "sroa.swift":1:21, scope 2

%4 = alloc_stack $(x: Int64, y: Int64), var, name "my_tup", loc "sroa.swift":2:7, scope 3
// Make sure SROA propagate the debug info to the splitted alloc_stack instructions
// Make sure SROA propagate the debug info to the split alloc_stack instructions
// CHECK-SROA: alloc_stack $Builtin.Int64, var
// CHECK-SROA-SAME: (name "my_tup", loc "sroa.swift":2:7
// CHECK-SROA-SAME: type $(x: Int64, y: Int64), expr op_tuple_fragment:$(x: Int64, y: Int64):0:op_fragment:#Int64._value
Expand Down
2 changes: 1 addition & 1 deletion test/Driver/loaded_module_trace_directness_2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Dependency graph:
//
// * CoreFilesystem - Swift module with generated ObjC header
// * FilesystemKit - ObjC module without overlay, has #import <CoreFileystem-Generated.h>
// * FilesystemKit - ObjC module without overlay, has #import <CoreFilesystem-Generated.h>
// * TestFilesystem - Swift module, has import CoreFilesystem or FilesystemKit.
//
// * CoreDaemon - ObjC module with overlay, the overlay has import DaemonKit
Expand Down
2 changes: 1 addition & 1 deletion test/Generics/conditional_conformances.swift
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ extension TwoDisjointConformances: P2 where T == String {}


// FIXME: these cases should be equivalent (and both with the same output as the
// first), but the second one choses T as the representative of the
// first), but the second one chooses T as the representative of the
// equivalence class containing both T and U in the extension's generic
// signature, meaning the stored conditional requirement is T: P1, which isn't
// true in the original type's generic signature.
Expand Down
2 changes: 1 addition & 1 deletion test/Index/Store/unit-custom-output-path-driver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
// Check the unit output is based on "index-unit-output-path":
// RUN: c-index-test core -print-unit %/t/idx_batch_with | %FileCheck -check-prefixes=INDEX_WITH %s
//
// Check the unit output is not baed on the "output" values:
// Check the unit output is not based on the "output" values:
// RUN: c-index-test core -print-unit %/t/idx_batch_with | %FileCheck -check-prefixes=INDEX_WITH_NEGATIVE %s
//
// C) Do the above again but with a fresh index store and using file lists.
Expand Down
2 changes: 1 addition & 1 deletion test/Index/Store/unit-custom-output-path.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
// Check the unit output is based on -index-unit-output-path:
// RUN: c-index-test core -print-unit %t/idx_batch_with | %FileCheck -check-prefixes=INDEX_BATCH_WITH %s
//
// Check the unit output is not baed on the -o values:
// Check the unit output is not based on the -o values:
// RUN: c-index-test core -print-unit %t/idx_batch_with | %FileCheck -check-prefixes=INDEX_BATCH_WITH_NEGATIVE %s
//
// INDEX_BATCH_WITH: custom_main.o-{{.*}}
Expand Down
2 changes: 1 addition & 1 deletion test/Inputs/lazy_typecheck_client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func testGlobalFunctions() {
}
}

func testGobalVars() {
func testGlobalVars() {
let _: Int = publicGlobalVar
let _: Int = publicGlobalVarTypealias
let _: String = publicGlobalVarInferredType
Expand Down
2 changes: 1 addition & 1 deletion test/Interpreter/SDK/Inputs/OldABI/OldABI.mm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

// Implementation of ObjC classes
// with bits set to mimic the pre-stable Swift ABI
// and additional memory protection to detect mis-use
// and additional memory protection to detect misuse

#if __has_include(<objc/objc-internal.h>)
#include <objc/objc-internal.h>
Expand Down
20 changes: 10 additions & 10 deletions test/Interpreter/init_accessors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ struct TestNoInitAndInit {

var pointX: Int {
@storageRestrictions(accesses: x)
init(initalValue) {
init(initialValue) {
}

get { x }
Expand Down Expand Up @@ -559,7 +559,7 @@ func test_effects_are_still_supported() {
}

test_effects_are_still_supported()
// CHEKC: effects-support-test: Test(_a: 42, b: 0)
// CHECK: effects-support-test: Test(_a: 42, b: 0)

func test_memberwise_without_stored_properties() {
struct Test {
Expand Down Expand Up @@ -819,9 +819,9 @@ do {
print(TestDefaultInitializable())
print(TestDefaultInitializable(a: 42))

struct TestMixedDefaultInitalizable : CustomStringConvertible {
struct TestMixedDefaultInitializable : CustomStringConvertible {
var description: String {
"TestMixedDefaultInitalizable(a: \(a), b: \(b))"
"TestMixedDefaultInitializable(a: \(a), b: \(b))"
}

var a: Int? {
Expand All @@ -838,15 +838,15 @@ do {
}
}

print(TestMixedDefaultInitalizable())
print(TestMixedDefaultInitalizable(b: "Hello"))
print(TestMixedDefaultInitalizable(a: 42))
print(TestMixedDefaultInitializable())
print(TestMixedDefaultInitializable(b: "Hello"))
print(TestMixedDefaultInitializable(a: 42))
}
// CHECK: TestDefaultInitializable(a: nil)
// CHECK-NEXT: TestDefaultInitializable(a: Optional(42))
// CHECK-NEXT: TestMixedDefaultInitalizable(a: nil, b: Optional(""))
// CHECK-NEXT: TestMixedDefaultInitalizable(a: nil, b: Optional("Hello"))
// CHECK-NEXT: TestMixedDefaultInitalizable(a: nil, b: Optional(""))
// CHECK-NEXT: TestMixedDefaultInitializable(a: nil, b: Optional(""))
// CHECK-NEXT: TestMixedDefaultInitializable(a: nil, b: Optional("Hello"))
// CHECK-NEXT: TestMixedDefaultInitializable(a: nil, b: Optional(""))

do {
struct TestNonMutatingSetDefault {
Expand Down
2 changes: 1 addition & 1 deletion test/Macros/lit.local.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
if 'asserts' not in config.available_features:
config.unsupported = True

config.subsitutions = list(config.substitutions)
config.substitutions = list(config.substitutions)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might cause a change in behavior. Are we certain it's correct?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very much like a typo in a line that did not prove necessary.

@compnerd Do we need this line removed or corrected?


def get_target_os():
import re
Expand Down
2 changes: 1 addition & 1 deletion test/Macros/macro_expand_closure.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func multiStatementInference() -> Int {
#multiStatement()
}

// The closure intruduced by the macro expansion should not contain any inline
// The closure introduced by the macro expansion should not contain any inline
// locations, but instead point directly into the macro buffer.
// CHECK-SIL: sil_scope [[S0:[0-9]+]] { loc "@__swiftmacro_9MacroUser0031macro_expand_closureswift_yFFIifMX16_2_14multiStatementfMf_.swift":1:1 parent @$s9MacroUser23multiStatementInferenceSiyFSiyXEfU_
// CHECK-SIL: sil_scope [[S2:[0-9]+]] { loc "@__swiftmacro_9MacroUser0031macro_expand_closureswift_yFFIifMX16_2_14multiStatementfMf_.swift":2:14 parent [[S0]] }
Expand Down
2 changes: 1 addition & 1 deletion test/Macros/macro_plugin_disable_sandbox.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: swift_swift_parser

// sandbox-exec is only avaiable in Darwin
// sandbox-exec is only available in Darwin
// REQUIRES: OS=macosx

// RUN: %empty-directory(%t)
Expand Down
2 changes: 1 addition & 1 deletion test/Macros/macro_swiftdeps.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
// WITHOUT_PLUGIN-NOT: AssertPlugin
// WITHOUT_PLUGIN-NOT: mock-plugin

// TRACE_WITH_PLGUIN: "swiftmacros":[
// TRACE_WITH_PLUGIN: "swiftmacros":[
// TRACE_WITH_PLUGIN-DAG: {"name":"AssertPlugin","path":"{{.*}}AssertPlugin.{{(dylib|so|dll)}}"}
// TRACE_WITH_PLUGIN-DAG: {"name":"StringifyPlugin","path":"{{.*}}StringifyPlugin.{{(dylib|so|dll)}}"}
// TRACE_WITH_PLUGIN-DAG: {"name":"TestPlugin","path":"{{.*}}mock-plugin"}
Expand Down
4 changes: 2 additions & 2 deletions test/ModuleInterface/async_sequence_conformance.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// REQUIRES: concurrency, OS=macosx

// CHECK: public struct SequenceAdapte
// CHECK: public struct SequenceAdapter
@available(SwiftStdlib 5.1, *)
public struct SequenceAdapter<Base: AsyncSequence>: AsyncSequence {
// CHECK-LABEL: public struct AsyncIterator
Expand All @@ -28,7 +28,7 @@ public struct SequenceAdapter<Base: AsyncSequence>: AsyncSequence {
// CHECK-SAME: public typealias __AsyncSequence_Failure = Base.Failure
}

// CHECK: public struct OtherSequenceAdapte
// CHECK: public struct OtherSequenceAdapter
@available(SwiftStdlib 5.1, *)
public struct OtherSequenceAdapter<Base: AsyncSequence>: AsyncSequence {
// CHECK: public typealias Element = Base.Element
Expand Down
2 changes: 1 addition & 1 deletion test/ModuleInterface/features.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// the uses of those features are guarded by appropriate #if's that allow older
// compilers to skip over the uses of newer features.

// Some feature gaurds are retired when the first compiler that supports the
// Some feature guards are retired when the first compiler that supports the
// feature is old enough. The --implicit-check-not arguments to FileCheck above
// verify that those guards no longer pollute the emitted interface.

Expand Down
2 changes: 1 addition & 1 deletion test/Parse/availability_query_unavailability.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ if #unavailable(iOS 8.0) {
if #unavailable(iOSApplicationExtension, unavailable) { // expected-error 2{{expected version number}}
}

// Should this be a valid spelling since `#unvailable(*)` cannot be written?
// Should this be a valid spelling since `#unavailable(*)` cannot be written?
if #unavailable() { // expected-error {{expected platform name}}
}

Expand Down
6 changes: 3 additions & 3 deletions test/Profiler/coverage_result_builder.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -profile-generate -profile-coverage-mapping -emit-sorted-sil -emit-sil -module-name coverage_functon_builder %s | %FileCheck %s
// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -profile-generate -profile-coverage-mapping -emit-sorted-sil -emit-sil -module-name coverage_function_builder %s | %FileCheck %s
// RUN: %target-swift-frontend -profile-generate -profile-coverage-mapping -emit-ir %s

@resultBuilder
Expand All @@ -11,15 +11,15 @@ struct Summer {
}
}

// CHECK-LABEL: sil_coverage_map {{.*}} "$s24coverage_functon_builder5test0SiyF"
// CHECK-LABEL: sil_coverage_map {{.*}} "$s25coverage_function_builder5test0SiyF"
@Summer
func test0() -> Int {
// CHECK: [[@LINE-1]]:21 -> [[@LINE+3]]:2 : 0
18
12
}

// CHECK-LABEL: sil_coverage_map {{.*}} "$s24coverage_functon_builder5test1SiyF"
// CHECK-LABEL: sil_coverage_map {{.*}} "$s25coverage_function_builder5test1SiyF"
@Summer
func test1() -> Int {
// CHECK: [[@LINE-1]]:21 -> [[@LINE+7]]:2 : 0
Expand Down
4 changes: 2 additions & 2 deletions test/Profiler/unmapped.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ struct UnavailableType {
var storedClosure: Int = { .random() ? 0 : 1 }()

@Wrapper
var wrappered = .random() ? 0 : 1
var wrapped = .random() ? 0 : 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm probably being too paranoid, but the identifier wrapped is, in some really specific cases, special for property wrappers. I don't think it means anything special here, but out of an abundance of caution I'd be more comfortable giving this a name that completely avoids that problem, like wrappedProperty.


@Wrapper(wrappedValue: .random() ? 0 : 1)
var alsoWrappered: Int
var alsoWrapped: Int
}

@available(*, unavailable)
Expand Down
6 changes: 3 additions & 3 deletions test/Prototypes/BigInt.swift
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ public struct _BigInt<Word: FixedWidthInteger & UnsignedInteger> :
return
}

// Comare `lhs` and `rhs` so we can use `_unsignedSubtract` to subtract
// Compare `lhs` and `rhs` so we can use `_unsignedSubtract` to subtract
// the smaller magnitude from the larger magnitude.
switch lhs._compareMagnitude(to: rhs) {
case .equal:
Expand Down Expand Up @@ -1032,7 +1032,7 @@ public struct _BigInt<Word: FixedWidthInteger & UnsignedInteger> :
case lessThan, equal, greaterThan
}

/// Returns whether this instance is less than, greather than, or equal to
/// Returns whether this instance is less than, greater than, or equal to
/// the given value.
func _compare(to rhs: _BigInt) -> _ComparisonResult {
// Negative values are less than positive values
Expand All @@ -1050,7 +1050,7 @@ public struct _BigInt<Word: FixedWidthInteger & UnsignedInteger> :
}
}

/// Returns whether the magnitude of this instance is less than, greather
/// Returns whether the magnitude of this instance is less than, greater
/// than, or equal to the magnitude of the given value.
func _compareMagnitude(to rhs: _BigInt) -> _ComparisonResult {
guard _data.count == rhs._data.count else {
Expand Down
Loading