Skip to contentSkip to conversation

misc: Spelling and grammar fixes in comments

PATCH Applied Stefan Weil 6 participants 11 messages Oct 11, 2013 – Oct 26, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 misc: Spelling and grammar fixes in comments

* it's -> its
* grammar fix in ui/vnc-enc-zywrle.h

---

This is v3 of http://patchwork.ozlabs.org/patch/257416/.

v3:
Don't try to improve a strange sentence in the same context ("Of cause [...]").

 qapi-schema.json    |    2 +-
 slirp/if.c          |    2 +-
 ui/vnc-enc-zywrle.h |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
qapi-schema.json +1 -1
index 60f3fd1..a003aa1 100644
@@ -1914,7 +1914,7 @@
 #
 # Since: 0.14.0
 #
-# Notes: This command only exists as a stop-gap.  It's use is highly
+# Notes: This command only exists as a stop-gap.  Its use is highly
 #        discouraged.  The semantics of this command are not guaranteed.
 #
 #        Known limitations:
slirp/if.c +1 -1
index 87ca8a5..fb7acf8 100644
@@ -142,7 +142,7 @@ diddit:
 
 /*
  * Send a packet
- * We choose a packet based on it's position in the output queues;
+ * We choose a packet based on its position in the output queues;
  * If there are packets on the fastq, they are sent FIFO, before
  * everything else.  Otherwise we choose the first packet from the
  * batchq and send it.  the next packet chosen will be from the session
ui/vnc-enc-zywrle.h +1 -1
index 1ff40b1..d436d58 100644
@@ -305,7 +305,7 @@ static inline void harr(int8_t *px0, int8_t *px1)
    |L1H0H1H0|L1H0H1H0|L1H0H1H0|L1H0H1H0| : level 1
 
  In this method, H/L and X0/X1 is always same position.
- This lead us to more speed and less memory.
+ This leads us to more speed and less memory.
  Of cause, the result of both method is quite same
  because it's only difference that coefficient position.
 */
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 48 lines · Stefan Weil

* it's -> its
* grammar fix in ui/vnc-enc-zywrle.h

---

This is v3 of http://patchwork.ozlabs.org/patch/257416/.

v3:
Don't try to improve a strange sentence in the same context ("Of cause [...]").

 qapi-schema.json    |    2 +-
 slirp/if.c          |    2 +-
 ui/vnc-enc-zywrle.h |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
qapi-schema.json +1 -1
index 60f3fd1..a003aa1 100644
@@ -1914,7 +1914,7 @@
 #
 # Since: 0.14.0
 #
-# Notes: This command only exists as a stop-gap.  It's use is highly
+# Notes: This command only exists as a stop-gap.  Its use is highly
 #        discouraged.  The semantics of this command are not guaranteed.
 #
 #        Known limitations:
slirp/if.c +1 -1
index 87ca8a5..fb7acf8 100644
@@ -142,7 +142,7 @@ diddit:
 
 /*
  * Send a packet
- * We choose a packet based on it's position in the output queues;
+ * We choose a packet based on its position in the output queues;
  * If there are packets on the fastq, they are sent FIFO, before
  * everything else.  Otherwise we choose the first packet from the
  * batchq and send it.  the next packet chosen will be from the session
ui/vnc-enc-zywrle.h +0 -0
index 1ff40b1..d436d58 100644

ui/vnc-enc-zywrle.h static inline void harr(int8_t *px0, int8_t *px1) · line 311

Quoted 8 lines
ui/vnc-enc-zywrle.h +1 -1
@@ -305,7 +305,7 @@ static inline void harr(int8_t *px0, int8_t *px1)
    |L1H0H1H0|L1H0H1H0|L1H0H1H0|L1H0H1H0| : level 1
 
  In this method, H/L and X0/X1 is always same position.
- This lead us to more speed and less memory.
+ This leads us to more speed and less memory.
  Of cause, the result of both method is quite same
  because it's only difference that coefficient position.
 */

Since you're in the neighborhood, this paragraph needs more fixes:

In this method, H/L and X0/X1 is always in the same position. This leads us to more speed and less memory.
Of course, the result of both methods is the same because the only difference is the coefficient position.

Thanks,
-d

#2 lore raw

Am 11.10.2013 22:03, schrieb Don Koch:

Quoted 59 lines · Stefan Weil
Quoted 48 lines

* it's -> its
* grammar fix in ui/vnc-enc-zywrle.h

---

This is v3 of http://patchwork.ozlabs.org/patch/257416/.

v3:
Don't try to improve a strange sentence in the same context ("Of cause [...]").

 qapi-schema.json    |    2 +-
 slirp/if.c          |    2 +-
 ui/vnc-enc-zywrle.h |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
qapi-schema.json +1 -1
index 60f3fd1..a003aa1 100644
@@ -1914,7 +1914,7 @@
 #
 # Since: 0.14.0
 #
-# Notes: This command only exists as a stop-gap.  It's use is highly
+# Notes: This command only exists as a stop-gap.  Its use is highly
 #        discouraged.  The semantics of this command are not guaranteed.
 #
 #        Known limitations:
slirp/if.c +1 -1
index 87ca8a5..fb7acf8 100644
@@ -142,7 +142,7 @@ diddit:
 
 /*
  * Send a packet
- * We choose a packet based on it's position in the output queues;
+ * We choose a packet based on its position in the output queues;
  * If there are packets on the fastq, they are sent FIFO, before
  * everything else.  Otherwise we choose the first packet from the
  * batchq and send it.  the next packet chosen will be from the session
ui/vnc-enc-zywrle.h +0 -0
index 1ff40b1..d436d58 100644

ui/vnc-enc-zywrle.h static inline void harr(int8_t *px0, int8_t *px1) · line 311

Quoted 8 lines
ui/vnc-enc-zywrle.h +1 -1
@@ -305,7 +305,7 @@ static inline void harr(int8_t *px0, int8_t *px1)
    |L1H0H1H0|L1H0H1H0|L1H0H1H0|L1H0H1H0| : level 1
 
  In this method, H/L and X0/X1 is always same position.
- This lead us to more speed and less memory.
+ This leads us to more speed and less memory.
  Of cause, the result of both method is quite same
  because it's only difference that coefficient position.
 */

Since you're in the neighborhood, this paragraph needs more fixes:

Quoted 1 line

In this method, H/L and X0/X1 is always in the same position.

Shouldn't it be "are always"? :-)

Quoted 6 lines

This leads us to more speed and less memory.
Of course, the result of both methods is the same because the only difference is the coefficient position.

Thanks,
-d

Maybe. Please let us fix that in a later patch.
See also the previous discussion
(http://patchwork.ozlabs.org/patch/257416/).

Regards,
Stefan

Reviewed-by
#3 lore raw
Quoted 60 lines · Stefan Weil

Am 11.10.2013 22:03, schrieb Don Koch:

Quoted 59 lines · Stefan Weil
Quoted 48 lines

* it's -> its
* grammar fix in ui/vnc-enc-zywrle.h

---

This is v3 of http://patchwork.ozlabs.org/patch/257416/.

v3:
Don't try to improve a strange sentence in the same context ("Of cause [...]").

 qapi-schema.json    |    2 +-
 slirp/if.c          |    2 +-
 ui/vnc-enc-zywrle.h |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
qapi-schema.json +1 -1
index 60f3fd1..a003aa1 100644
@@ -1914,7 +1914,7 @@
 #
 # Since: 0.14.0
 #
-# Notes: This command only exists as a stop-gap.  It's use is highly
+# Notes: This command only exists as a stop-gap.  Its use is highly
 #        discouraged.  The semantics of this command are not guaranteed.
 #
 #        Known limitations:
slirp/if.c +1 -1
index 87ca8a5..fb7acf8 100644
@@ -142,7 +142,7 @@ diddit:
 
 /*
  * Send a packet
- * We choose a packet based on it's position in the output queues;
+ * We choose a packet based on its position in the output queues;
  * If there are packets on the fastq, they are sent FIFO, before
  * everything else.  Otherwise we choose the first packet from the
  * batchq and send it.  the next packet chosen will be from the session
ui/vnc-enc-zywrle.h +0 -0
index 1ff40b1..d436d58 100644

ui/vnc-enc-zywrle.h static inline void harr(int8_t *px0, int8_t *px1) · line 311

Quoted 8 lines
ui/vnc-enc-zywrle.h +1 -1
@@ -305,7 +305,7 @@ static inline void harr(int8_t *px0, int8_t *px1)
    |L1H0H1H0|L1H0H1H0|L1H0H1H0|L1H0H1H0| : level 1
 
  In this method, H/L and X0/X1 is always same position.
- This lead us to more speed and less memory.
+ This leads us to more speed and less memory.
  Of cause, the result of both method is quite same
  because it's only difference that coefficient position.
 */

Since you're in the neighborhood, this paragraph needs more fixes:

Quoted 3 lines
Quoted 1 line

In this method, H/L and X0/X1 is always in the same position.

Shouldn't it be "are always"? :-)

Yes. I got swamped by the other typos. :-)

Quoted 9 lines
Quoted 7 lines

This leads us to more speed and less memory.
Of course, the result of both methods is the same because the only difference is the coefficient position.

Thanks,
-d

Maybe. Please let us fix that in a later patch.\

Works for me.

Quoted 2 lines

See also the previous discussion
(http://patchwork.ozlabs.org/patch/257416/).

I had unfortunately deleted that thread when I saw there was an update. *sigh*

Quoted 2 lines

Regards,
Stefan

-d

#4 lore raw
In reply to Don Koch
Quoted 8 lines · Don Koch
Quoted 7 lines

In this method, H/L and X0/X1 is always same position.
- This lead us to more speed and less memory.
+ This leads us to more speed and less memory. Of cause, the result of both method is quite same because it's only difference that coefficient position. */

Quoted 6 lines

Since you're in the neighborhood, this paragraph needs more fixes:

In this method, H/L and X0/X1 is always in the same position. This leads us to more speed and less memory.
Of course, the result of both methods is the same because the only difference is the coefficient position.

Broken record. This was what was attempted in v1, where the argument was that the original wording is so obtuse that it is not obvious that this is the correct replacement.

I actually like the approach of v2.

Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#5 lore raw
In reply to Don Koch
Quoted 20 lines · Don Koch
Quoted 11 lines · Stefan Weil

* it's -> its
* grammar fix in ui/vnc-enc-zywrle.h

---

This is v3 of http://patchwork.ozlabs.org/patch/257416/.

v3:
Don't try to improve a strange sentence in the same context ("Of cause [...]").

Quoted 7 lines

In this method, H/L and X0/X1 is always same position.
- This lead us to more speed and less memory.
+ This leads us to more speed and less memory. Of cause, the result of both method is quite same because it's only difference that coefficient position. */

Quoted 1 line

Since you're in the neighborhood, this paragraph needs more fixes:

No, see the note above and the previous discussion.

Quoted 4 lines

In this method, H/L and X0/X1 is always in the same position. This leads us to more speed and less memory.
Of course, the result of both methods is the same because the only difference is the coefficient position.

Unless you want to say you've reviewed the code and are completely confident that the original author meant "the same" or "exactly the same" and not "quite similar" then we need to leave the original wording alone.

-- PMM

#6 lore raw
Quoted 21 lines · Peter Maydell
Quoted 20 lines · Don Koch
Quoted 18 lines · Stefan Weil

* it's -> its
* grammar fix in ui/vnc-enc-zywrle.h

---

This is v3 of http://patchwork.ozlabs.org/patch/257416/.

v3:
Don't try to improve a strange sentence in the same context ("Of cause [...]").

In this method, H/L and X0/X1 is always same position.
- This lead us to more speed and less memory.
+ This leads us to more speed and less memory. Of cause, the result of both method is quite same because it's only difference that coefficient position. */

Quoted 3 lines
Quoted 1 line

Since you're in the neighborhood, this paragraph needs more fixes:

No, see the note above and the previous discussion.

In that case, there in no point in fixing just the lead/leads typo.

Quoted 5 lines
Quoted 4 lines

In this method, H/L and X0/X1 is always in the same position. This leads us to more speed and less memory.
Of course, the result of both methods is the same because the only difference is the coefficient position.

Quoted 7 lines

Unless you want to say you've reviewed the code and are completely confident that the original author meant "the same" or "exactly the same" and not "quite similar" then we need to leave the original wording alone.

-- PMM

-d

#7 lore raw

So guys, do we agree to apply this or not, after all? :)

Thanks,

/mjt

Quoted 45 lines · Don Koch
Quoted 21 lines · Peter Maydell
Quoted 20 lines · Don Koch
Quoted 18 lines · Stefan Weil

* it's -> its
* grammar fix in ui/vnc-enc-zywrle.h

---

This is v3 of http://patchwork.ozlabs.org/patch/257416/.

v3:
Don't try to improve a strange sentence in the same context ("Of cause [...]").

In this method, H/L and X0/X1 is always same position.
- This lead us to more speed and less memory.
+ This leads us to more speed and less memory.
Of cause, the result of both method is quite same because it's only difference that coefficient position.
*/

Quoted 3 lines
Quoted 1 line

Since you're in the neighborhood, this paragraph needs more fixes:

No, see the note above and the previous discussion.

In that case, there in no point in fixing just the lead/leads typo.

Quoted 5 lines
Quoted 4 lines

In this method, H/L and X0/X1 is always in the same position. This leads us to more speed and less memory.
Of course, the result of both methods is the same because the only difference is the coefficient position.

Quoted 7 lines

Unless you want to say you've reviewed the code and are completely confident that the original author meant "the same" or "exactly the same" and not "quite similar" then we need to leave the original wording alone.

-- PMM

-d

#8 lore raw

Am 21.10.2013 10:46, schrieb Michael Tokarev:

Quoted 5 lines

So guys, do we agree to apply this or not, after all? :)

Thanks,

/mjt

The discussion was a bit confusing.

Finally, the patch got two reviews (Reviewed-by: Peter Maydell <[email protected]>, Reviewed-By: Don Koch <[email protected]>, see http://patchwork.ozlabs.org/patch/282925/).I assume that Reviewed-By is unusual but obviously the same as Reviewed-by.

Eric Blake wrote that he liked the approach of patch v2, but did not object to v3.

Therefore I think that you can take the patch v3 into your queue.

Regards,
Stefan