[Git][ghc/ghc][wip/jsbits-userguide] Fix typos

Josh Meredith (@JoshMeredith) gitlab at gitlab.haskell.org
Tue Oct 24 12:01:38 UTC 2023



Josh Meredith pushed to branch wip/jsbits-userguide at Glasgow Haskell Compiler / GHC


Commits:
722987bc by Sylvain Henry at 2023-10-24T12:01:34+00:00
Fix typos
- - - - -


1 changed file:

- docs/users_guide/javascript.rst


Changes:

=====================================
docs/users_guide/javascript.rst
=====================================
@@ -295,7 +295,7 @@ expects a ``CString`` (passed as the equivalent ``Ptr CChar``) and a
 for the string's pointer and offset, and one for the size, which will be passed as a
 JavaScript number.
 
-Next, the JavaScript ``h$getcwd`` function demonstrates a several details:
+Next, the JavaScript ``h$getcwd`` function demonstrates several details:
 
 * In the try clause, the ``cwd`` value is first accessed using a NodeJS-provided method.
   This value is immediately encoded using ``h$encodeUtf8``, which is provided by the
@@ -413,7 +413,7 @@ use Haskell wrapper functions to convert the imported functions to the appropria
 format.
 
 In other cases, C functions are used for performance. For these cases, pure-Haskell
-implementations are the preferred first step for compatability with the JavaScript
+implementations are the preferred first step for compatibility with the JavaScript
 backend since it would be more future-proof against changes to the RTS data format.
 Depending on the use case, compiler-optimised JS code might be hard to complete with
 using hand-written JavaScript. Generally, the most likely performance gains from



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/722987bc93bd19c5dd0ae3d7f06b1449b3fe09a7

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/722987bc93bd19c5dd0ae3d7f06b1449b3fe09a7
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20231024/4044b2cf/attachment.html>


More information about the ghc-commits mailing list