Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 477a136

Browse files
authored
Getting updates from main (#942)
2 parents 00979a4 + 9780a06 commit 477a136

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/Qir/Tools/EntryPointOperationLoader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private static List<Parameter> GetParams(QsCallable callable)
5656
.ToList();
5757
}
5858

59-
private static Parameter MakeParameter(LocalVariableDeclaration<QsLocalSymbol> parameter)
59+
private static Parameter MakeParameter(LocalVariableDeclaration<QsLocalSymbol, ResolvedType> parameter)
6060
{
6161
var type = MapResolvedTypeToDataType(parameter.Type);
6262
var arrayType = parameter.Type.Resolution is QsTypeKind.ArrayType innerType

src/Simulation/QSharpFoundation/Diagnostics/Facts.qs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ namespace Microsoft.Quantum.Diagnostics {
55
open Microsoft.Quantum.Math;
66

77
/// # Summary
8-
/// Declares that a classical condition is true.
8+
/// Checks whether a classical condition is true, and throws an exception if it is not.
99
///
1010
/// # Input
1111
/// ## actual
12-
/// The condition to be declared.
12+
/// The condition to be checked.
1313
/// ## message
14-
/// Failure message string to be printed in the case that the classical
14+
/// Failure message string to be used as an error message if the classical
1515
/// condition is false.
1616
///
1717
/// # See Also
1818
/// - Microsoft.Quantum.Diagnostics.Contradiction
1919
///
2020
/// # Example
21-
/// The following Q# snippet will fail:
21+
/// The following Q# snippet will throw an exception:
2222
/// ```qsharp
2323
/// Fact(false, "Expected true.");
2424
/// ```
@@ -27,13 +27,13 @@ namespace Microsoft.Quantum.Diagnostics {
2727
}
2828

2929
/// # Summary
30-
/// Declares that a classical condition is false.
30+
/// Checks whether a classical condition is false, and throws an exception if it is not.
3131
///
3232
/// # Input
3333
/// ## actual
34-
/// The condition to be declared.
34+
/// The condition to be checked.
3535
/// ## message
36-
/// Failure message string to be printed in the case that the classical
36+
/// Failure message string to be used as an error message if the classical
3737
/// condition is true.
3838
///
3939
/// # See Also
@@ -50,18 +50,18 @@ namespace Microsoft.Quantum.Diagnostics {
5050
}
5151

5252
/// # Summary
53-
/// Declares that a given floating-point value represents a finite
54-
/// number, failing when this is not the case.
53+
/// Checks whether a given floating-point value represents a finite
54+
/// number, and throws an exception if this is not the case.
5555
///
5656
/// # Input
5757
/// ## d
5858
/// The floating-point value that is to be checked.
5959
/// ## message
60-
/// Failure message to be printed in the case that `d` is either
60+
/// Failure message to be used as an error message if `d` is either
6161
/// not finite, or not a number.
6262
///
6363
/// # Example
64-
/// The following Q# code will fail when run:
64+
/// The following Q# code will throw an exception:
6565
/// ```qsharp
6666
/// FiniteFact(NaN(), "NaN is not a finite number.");
6767
/// ```

0 commit comments

Comments
 (0)