aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/coqdoc
diff options
context:
space:
mode:
authorGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2017-03-20 15:14:01 +0100
committerGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2017-03-20 15:15:47 +0100
commitd25b1431eb73a04bdfc0f1ad2922819b69bba93a (patch)
treea802bf020ea296283892aaca2304fcddc7a6b709 /tools/coqdoc
parent5e2574cbef1ba132aacc73b4a079cc0b5584f589 (diff)
[misc] Remove warnings about String.set
The `a.[i] <- x` notation is deprecated and we were getting a couple of warnings.
Diffstat (limited to 'tools/coqdoc')
-rw-r--r--tools/coqdoc/index.ml8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/coqdoc/index.ml b/tools/coqdoc/index.ml
index c9cb676e9..34108eff4 100644
--- a/tools/coqdoc/index.ml
+++ b/tools/coqdoc/index.ml
@@ -205,17 +205,17 @@ let prepare_entry s = function
while !j <= l do
if not !quoted then begin
(match s.[!j] with
- | '_' -> ntn.[!k] <- ' '; incr k
- | 'x' -> ntn.[!k] <- '_'; incr k
+ | '_' -> Bytes.set ntn !k ' '; incr k
+ | 'x' -> Bytes.set ntn !k '_'; incr k
| '\'' -> quoted := true
| _ -> assert false)
end
else
if s.[!j] = '\'' then
if (!j = l || s.[!j+1] = '_') then quoted := false
- else (incr j; ntn.[!k] <- s.[!j]; incr k)
+ else (incr j; Bytes.set ntn !k s.[!j]; incr k)
else begin
- ntn.[!k] <- s.[!j];
+ Bytes.set ntn !k s.[!j];
incr k
end;
incr j