← Prev in month ← Prev in thread

[PATCH] Fix ^= in example code

From
Jan Kiszka <>
Date
2019-10-11T11:43:44+00:00
ID
Thread
[PATCH] Fix ^= in example code
From: Jan Kiszka <>

Trying to escaping ^ here only leaves the backslash in the output.

Signed-off-by: Jan Kiszka <>
---
 packed-ring.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/packed-ring.tex b/packed-ring.tex
index caf47a5..ea92543 100644
--- a/packed-ring.tex
+++ b/packed-ring.tex
@@ -634,7 +634,7 @@ \subsubsection{Implementation Example}\label{sec:Basic Facilities of a Virtio De
 
         if (vq->next_avail >= vq->size) {
                 vq->next_avail = 0;
-                vq->avail_wrap_count \^= 1;
+                vq->avail_wrap_count ^= 1;
         }
 }
 vq->sgs[id] = sgs;
@@ -727,7 +727,7 @@ \subsection{Receiving Used Buffers From The Device}\label{sec:Basic Facilities o
         vq->next_used += sgs;
         if (vq->next_used >= vq->size) {
                 vq->next_used -= vq->size;
-                vq->used_wrap_count \^= 1;
+                vq->used_wrap_count ^= 1;
         }
 
         free_id(vq, id);
-- 
2.16.4
← Prev in month ← Prev in thread