Skip to content

Commit b3ed351

Browse files
authored
fix: remove unicode pi symbols in rotation extension (#743)
1 parent 0c6101b commit b3ed351

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

tket2-exts/src/tket2_exts/data/tket2/rotation.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"from_halfturns": {
2020
"extension": "tket2.rotation",
2121
"name": "from_halfturns",
22-
"description": "Construct rotation from number of half-turns (would be multiples of π in radians). Returns None if the float is non-finite.",
22+
"description": "Construct rotation from number of half-turns (would be multiples of PI in radians). Returns None if the float is non-finite.",
2323
"signature": {
2424
"params": [],
2525
"body": {
@@ -58,7 +58,7 @@
5858
"from_halfturns_unchecked": {
5959
"extension": "tket2.rotation",
6060
"name": "from_halfturns_unchecked",
61-
"description": "Construct rotation from number of half-turns (would be multiples of π in radians). Panics if the float is non-finite.",
61+
"description": "Construct rotation from number of half-turns (would be multiples of PI in radians). Panics if the float is non-finite.",
6262
"signature": {
6363
"params": [],
6464
"body": {
@@ -125,7 +125,7 @@
125125
"to_halfturns": {
126126
"extension": "tket2.rotation",
127127
"name": "to_halfturns",
128-
"description": "Convert rotation to number of half-turns (would be multiples of π in radians).",
128+
"description": "Convert rotation to number of half-turns (would be multiples of PI in radians).",
129129
"signature": {
130130
"params": [],
131131
"body": {

tket2/src/extension/rotation.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ impl CustomConst for ConstRotation {
121121
#[non_exhaustive]
122122
/// Rotation operations
123123
pub enum RotationOp {
124-
/// Construct rotation from a floating point number of half-turns (would be multiples of π in radians).
124+
/// Construct rotation from a floating point number of half-turns (would be multiples of PI in radians).
125125
/// Returns an Option, failing when the input is NaN or infinite.
126126
from_halfturns,
127-
/// Construct rotation from a floating point number of half-turns (would be multiples of π in radians).
127+
/// Construct rotation from a floating point number of half-turns (would be multiples of PI in radians).
128128
/// Panics if the input is NaN or infinite.
129129
from_halfturns_unchecked,
130-
/// Convert rotation to number of half-turns (would be multiples of π in radians).
130+
/// Convert rotation to number of half-turns (would be multiples of PI in radians).
131131
to_halfturns,
132132
/// Add two angles together (experimental, may be removed, use float addition
133133
/// first instead if possible).
@@ -166,13 +166,13 @@ impl MakeOpDef for RotationOp {
166166
fn description(&self) -> String {
167167
match self {
168168
RotationOp::from_halfturns => {
169-
"Construct rotation from number of half-turns (would be multiples of π in radians). Returns None if the float is non-finite."
169+
"Construct rotation from number of half-turns (would be multiples of PI in radians). Returns None if the float is non-finite."
170170
}
171171
RotationOp::from_halfturns_unchecked => {
172-
"Construct rotation from number of half-turns (would be multiples of π in radians). Panics if the float is non-finite."
172+
"Construct rotation from number of half-turns (would be multiples of PI in radians). Panics if the float is non-finite."
173173
}
174174
RotationOp::to_halfturns => {
175-
"Convert rotation to number of half-turns (would be multiples of π in radians)."
175+
"Convert rotation to number of half-turns (would be multiples of PI in radians)."
176176
}
177177
RotationOp::radd => "Add two angles together (experimental).",
178178
}

0 commit comments

Comments
 (0)