diff options
author | Emilio Jesus Gallego Arias <e+git@x80.org> | 2017-02-23 13:32:46 +0100 |
---|---|---|
committer | Emilio Jesus Gallego Arias <e+git@x80.org> | 2017-03-14 22:19:26 +0100 |
commit | 6b78d0602d46520ed1bd0cfbef120de3b06ca826 (patch) | |
tree | 70504c611b6e333a8849f4860e51e91819b0d5ed /plugins/extraction/common.ml | |
parent | fa895511eaa1c374c72ea2096c1dfb33dfbee379 (diff) |
[safe-string] plugins/extraction
No functional change.
Diffstat (limited to 'plugins/extraction/common.ml')
-rw-r--r-- | plugins/extraction/common.ml | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/extraction/common.ml b/plugins/extraction/common.ml index de97ba97c..0a591e786 100644 --- a/plugins/extraction/common.ml +++ b/plugins/extraction/common.ml @@ -91,10 +91,7 @@ let begins_with_CoqXX s = let unquote s = if lang () != Scheme then s - else - let s = String.copy s in - for i=0 to String.length s - 1 do if s.[i] == '\'' then s.[i] <- '~' done; - s + else String.map (fun c -> if c == '\'' then '~' else c) s let rec qualify delim = function | [] -> assert false |