all: fix typos in comments (#383)
- commit
- 200df6041cfffcb817f1ef7cb5fad9759b588fe9
- author
- Luc · · 2026-01-02 15:32 UTC
- committer
- GitHub · · 2026-01-02 15:32 UTC
- parent
- 6b66588
- signature
- GPG Unverified
B5690EEEBB952194The key is unknown
2 files · +4 -4
M cgo.go +2 -2
| @@ -7,8 +7,8 @@ package purego | |||
| 7 | 7 | ||
| 8 | 8 | // if CGO_ENABLED=1 import the Cgo runtime to ensure that it is set up properly. | |
| 9 | 9 | // This is required since some frameworks need TLS setup the C way which Go doesn't do. | |
| 10 | - | // We currently don't support ios in fakecgo mode so force Cgo or fail | |
| 11 | - | // Even if CGO_ENABLED=1 the Cgo runtime is not imported unless `import "C"` is used. | |
| 10 | + | // We currently don't support ios in fakecgo mode so force Cgo or fail. | |
| 11 | + | // Even if CGO_ENABLED=1 the Cgo runtime is not imported unless `import "C"` is used, | |
| 12 | 12 | // which will import this package automatically. Normally this isn't an issue since it | |
| 13 | 13 | // usually isn't possible to call into C without using that import. However, with purego | |
| 14 | 14 | // it is since we don't use `import "C"`! | |
| @@ -7,8 +7,8 @@ package purego | |||||
| 7 | 7 | ||||
| 8 | // if CGO_ENABLED=1 import the Cgo runtime to ensure that it is set up properly. | 8 | // if CGO_ENABLED=1 import the Cgo runtime to ensure that it is set up properly. | ||
| 9 | // This is required since some frameworks need TLS setup the C way which Go doesn't do. | 9 | // This is required since some frameworks need TLS setup the C way which Go doesn't do. | ||
| 10 | - | // We currently don't support ios in fakecgo mode so force Cgo or fail | 10 | + | // We currently don't support ios in fakecgo mode so force Cgo or fail. |
| 11 | - | // Even if CGO_ENABLED=1 the Cgo runtime is not imported unless `import "C"` is used. | 11 | + | // Even if CGO_ENABLED=1 the Cgo runtime is not imported unless `import "C"` is used, |
| 12 | // which will import this package automatically. Normally this isn't an issue since it | 12 | // which will import this package automatically. Normally this isn't an issue since it | ||
| 13 | // usually isn't possible to call into C without using that import. However, with purego | 13 | // usually isn't possible to call into C without using that import. However, with purego | ||
| 14 | // it is since we don't use `import "C"`! | 14 | // it is since we don't use `import "C"`! | ||
M objc/objc_runtime_darwin.go +2 -2
| @@ -210,7 +210,7 @@ func SendSuper[T any](id ID, sel SEL, args ...any) T { | |||
| 210 | 210 | type SEL uintptr | |
| 211 | 211 | ||
| 212 | 212 | // RegisterName registers a method with the Objective-C runtime system, maps the method name to a selector, | |
| 213 | - | // and returns the selector value. This function grabs the global Objective-c lock. It is best the cache the | |
| 213 | + | // and returns the selector value. This function grabs the global Objective-c lock. It is best to cache the | |
| 214 | 214 | // result of this function. | |
| 215 | 215 | func RegisterName(name string) SEL { | |
| 216 | 216 | return sel_registerName(name) | |
| @@ -238,7 +238,7 @@ type MethodDef struct { | |||
| 238 | 238 | // | |
| 239 | 239 | // @property (readwrite) float value; | |
| 240 | 240 | // | |
| 241 | - | // In Go, the functions can be accessed as followed: | |
| 241 | + | // In Go, the functions can be accessed as follows: | |
| 242 | 242 | // | |
| 243 | 243 | // var value = purego.Send[float32](id, purego.RegisterName("value")) | |
| 244 | 244 | // id.Send(purego.RegisterName("setValue:"), 3.46) | |
| @@ -210,7 +210,7 @@ func SendSuper[T any](id ID, sel SEL, args ...any) T { | |||||
| 210 | type SEL uintptr | 210 | type SEL uintptr | ||
| 211 | 211 | ||||
| 212 | // RegisterName registers a method with the Objective-C runtime system, maps the method name to a selector, | 212 | // RegisterName registers a method with the Objective-C runtime system, maps the method name to a selector, | ||
| 213 | - | // and returns the selector value. This function grabs the global Objective-c lock. It is best the cache the | 213 | + | // and returns the selector value. This function grabs the global Objective-c lock. It is best to cache the |
| 214 | // result of this function. | 214 | // result of this function. | ||
| 215 | func RegisterName(name string) SEL { | 215 | func RegisterName(name string) SEL { | ||
| 216 | return sel_registerName(name) | 216 | return sel_registerName(name) | ||
| @@ -238,7 +238,7 @@ type MethodDef struct { | |||||
| 238 | // | 238 | // | ||
| 239 | // @property (readwrite) float value; | 239 | // @property (readwrite) float value; | ||
| 240 | // | 240 | // | ||
| 241 | - | // In Go, the functions can be accessed as followed: | 241 | + | // In Go, the functions can be accessed as follows: |
| 242 | // | 242 | // | ||
| 243 | // var value = purego.Send[float32](id, purego.RegisterName("value")) | 243 | // var value = purego.Send[float32](id, purego.RegisterName("value")) | ||
| 244 | // id.Send(purego.RegisterName("setValue:"), 3.46) | 244 | // id.Send(purego.RegisterName("setValue:"), 3.46) | ||