Skip to content

Commit

Permalink
Fix two sets of quality preception diminishing typos (#2914)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeTibbert committed Oct 18, 2022
1 parent b37b28c commit faba287
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Expand Up @@ -7,7 +7,7 @@ private[scalanative] trait UnsafePackageCompat { self =>
* allocator.
*/
@deprecated(
"In Scala 3 alloc[T](n) can be confused with alloc[T].apply(n) leading to runtime erros, use alloc[T]() instead",
"In Scala 3 alloc[T](n) can be confused with alloc[T].apply(n) leading to runtime errors, use alloc[T]() instead",
since = "0.4.3"
)
def alloc[T](implicit tag: Tag[T], z: Zone): Ptr[T] =
Expand Down Expand Up @@ -41,7 +41,7 @@ private[scalanative] trait UnsafePackageCompat { self =>
* Note: unlike alloc, the memory is not zero-initialized.
*/
@deprecated(
"In Scala 3 alloc[T](n) can be confused with alloc[T].apply(n) leading to runtime erros, use alloc[T]() instead",
"In Scala 3 alloc[T](n) can be confused with alloc[T].apply(n) leading to runtime errors, use alloc[T]() instead",
since = "0.4.3"
)
def stackalloc[T](implicit tag: Tag[T]): Ptr[T] =
Expand Down Expand Up @@ -83,7 +83,7 @@ private object MacroImpl {
c.enclosingPosition,
s"Scala Native method `alloc[T]` is deprecated, " +
"in Scala 3 `alloc[T](n)` can be interpreted as " +
"`alloc[T].apply(n)` leading to runtime erros, " +
"`alloc[T].apply(n)` leading to runtime errors, " +
"use `alloc[T]()` instead "
)
alloc1Impl(c)(tag, z)
Expand Down Expand Up @@ -141,7 +141,7 @@ private object MacroImpl {
c.enclosingPosition,
s"Scala Native method `stackalloc[T]` is deprecated, " +
"in Scala 3 `stackalloc[T](n)` can be interpreted as " +
"`stackalloc[T].apply(n)` leading to runtime erros, " +
"`stackalloc[T].apply(n)` leading to runtime errors, " +
"use `stackalloc[T]()` instead "
)
stackalloc1Impl(c)(tag)
Expand Down
Expand Up @@ -19,7 +19,7 @@ object in {
type in_addr = CStruct1[in_addr_t] // s_addr

type sockaddr_in = CStruct4[
socket.sa_family_t, // sin_family, sin_len is synthisized if needed
socket.sa_family_t, // sin_family, sin_len is synthesized if needed
in_port_t, // sin_port
in_addr, // sin_addr
CArray[Byte, _8] // sin_zero, Posix allowed
Expand All @@ -28,7 +28,7 @@ object in {
type in6_addr = CStruct1[CArray[uint8_t, _16]] // s6_addr

type sockaddr_in6 = CStruct5[
socket.sa_family_t, // sin6_family, sin6_len is synthisized if needed
socket.sa_family_t, // sin6_family, sin6_len is synthesized if needed
in_port_t, // sin6_port
uint32_t, // sin6_flowinfo
in6_addr, // sin6_addr
Expand Down
Expand Up @@ -105,7 +105,7 @@ object CodeGen {
Impl(config, env, sorted).gen(id = "out", workdir) :: Nil
}

// For some reason in the CI matching for `case _: build.Mode.Release` throws compile time erros
// For some reason in the CI matching for `case _: build.Mode.Release` throws compile time errors
import build.Mode._
(
config.mode,
Expand Down

0 comments on commit faba287

Please sign in to comment.