After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 668857 - fix couple of typos in comments
fix couple of typos in comments
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
2.31.x
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2012-01-27 16:34 UTC by Ravi Sankar Guntur
Modified: 2012-01-28 06:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix couple of typos in comments (8.73 KB, patch)
2012-01-27 16:38 UTC, Ravi Sankar Guntur
reviewed Details | Review
fix couple of typos in comments (8.68 KB, patch)
2012-01-28 06:37 UTC, Ravi Sankar Guntur
committed Details | Review

Description Ravi Sankar Guntur 2012-01-27 16:34:25 UTC
fix couple of typos in,

glib/gbase64.c
glib/gbookmarkfile.c
glib/gchecksum.c
glib/gdataset.c
glib/gdate.c
glib/ggettext.c
glib/grand.c
glib/gsequence.c
glib/gslice.c
glib/gtester.c
glib/gthread-posix.c
glib/gvariant-core.c
Comment 1 Ravi Sankar Guntur 2012-01-27 16:38:54 UTC
Created attachment 206284 [details] [review]
fix couple of typos in comments
Comment 2 Emmanuele Bassi (:ebassi) 2012-01-27 16:46:51 UTC
Review of attachment 206284 [details] [review]:

looks generally good to me.

::: glib/gvariant-core.c
@@ +685,3 @@
  * that if the value was just created (and has only its floating
  * reference) then the container will assume sole ownership of the value
+ * at that point and the caller will not need to dereference it.  This

"unreference" is correct, in this case, though poor English.

"release its reference to it" could be used, in this case.

@@ +830,3 @@
  * corrupted serialised container then %NULL may be returned.  In this
  * case, the proper thing to do is typically to use the appropriate
+ * number of null bytes in place of @value.  If @value is not fixed-sized

no, 'nul' is correct.

could have used NUL as well.
Comment 3 Ravi Sankar Guntur 2012-01-28 06:37:03 UTC
Created attachment 206310 [details] [review]
fix couple of typos in comments

reverted "null" to "NUL" as suggested.
Comment 4 Allison Karlitskaya (desrt) 2012-01-28 06:50:35 UTC
Review of attachment 206310 [details] [review]:

everything looks good except for the changes to GVariant (see comments)

::: glib/gvariant-core.c
@@ +685,3 @@
  * that if the value was just created (and has only its floating
  * reference) then the container will assume sole ownership of the value
+ * at that point and the caller will not need to dereference it.  This

dereference is not the correct term to use here.

@@ +830,3 @@
  * corrupted serialised container then %NULL may be returned.  In this
  * case, the proper thing to do is typically to use the appropriate
+ * number of NUL bytes in place of @value.  If @value is not fixed-sized

i prefer 'nul' for this case and 'NULL' for pointers, so this is best left alone as well.
Comment 5 Allison Karlitskaya (desrt) 2012-01-28 06:53:34 UTC
I've pushed the patch, minus the changes to GVariant.

Thanks!