all: convert ' to ′ and '' to ′′

This is necessary because gofmt in go1.19 imposes smart quotes on comments
that use pairs of single quotes. Doubled-up single tick, U+2032, is chosen
over double tick, U+2033, since the latter is harder to distinguish in many
fonts at normally used font sizes, sometimes being indistinguishable from
other superscript marks such as asterisk. Comparison: ′ ″ *
This commit is contained in:
Dan Kortschak
2022-08-05 20:20:00 +09:30
parent 8af7678edb
commit b2a1b49ea5
5 changed files with 19 additions and 19 deletions

View File

@@ -24,12 +24,12 @@ func ExampleNumber_fike() {
v := fn(hyperdual.Number{Real: 1.5, E1mag: 1, E2mag: 1})
fmt.Printf("v=%.4f\n", v)
fmt.Printf("fn(1.5)=%.4f\nfn'(1.5)=%.4f\nfn''(1.5)=%.4f\n", v.Real, v.E1mag, v.E1E2mag)
fmt.Printf("fn(1.5)=%.4f\nfn(1.5)=%.4f\nfn(1.5)=%.4f\n", v.Real, v.E1mag, v.E1E2mag)
// Output:
//
// v=(4.4978+4.0534ϵ₁+4.0534ϵ₂+9.4631ϵ₁ϵ₂)
// fn(1.5)=4.4978
// fn'(1.5)=4.0534
// fn''(1.5)=9.4631
// fn(1.5)=4.0534
// fn(1.5)=9.4631
}