[commit: ghc] master: minor wordsmithing (53700a9)
git at git.haskell.org
git at git.haskell.org
Mon Oct 30 14:01:26 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/53700a9de48a3fb15015bd60462878fc9a2c0548/ghc
>---------------------------------------------------------------
commit 53700a9de48a3fb15015bd60462878fc9a2c0548
Author: Gabor Greif <ggreif at gmail.com>
Date: Mon Oct 30 12:03:30 2017 +0100
minor wordsmithing
>---------------------------------------------------------------
53700a9de48a3fb15015bd60462878fc9a2c0548
docs/users_guide/using-warnings.rst | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/docs/users_guide/using-warnings.rst b/docs/users_guide/using-warnings.rst
index 216d7ee..c6a86bb 100644
--- a/docs/users_guide/using-warnings.rst
+++ b/docs/users_guide/using-warnings.rst
@@ -1466,17 +1466,17 @@ of ``-W(no-)*``.
``other-modules``.
.. ghc-flag:: -Wpartial-fields
- :shortdesc: warn when define partial record field.
+ :shortdesc: warn when defining a partial record field.
:type: dynamic
:reverse: -Wno-partial-fields
:category:
:since: 8.4
- The option :ghc-flag:`-Wpartial-fields` warns about record field that could
- fail when it is used as a function. The function ``f`` below will fail when
- applied to Bar, so the compiler will emit a warning about this when
- :ghc-flag:`-Wpartial-fields` is enabled.
+ The option :ghc-flag:`-Wpartial-fields` warns about record fields that could
+ fail when accessed via a lacking constructor. The function ``f`` below will
+ fail when applied to ``Bar``, so the compiler will emit a warning at its
+ definition when :ghc-flag:`-Wpartial-fields` is enabled.
The warning is suppressed if the field name begins with an underscore. ::
More information about the ghc-commits
mailing list