diff --git a/ocaml/doc/basics.md b/ocaml/doc/basics.md index f416cf720ed..fc9b2583fb1 100644 --- a/ocaml/doc/basics.md +++ b/ocaml/doc/basics.md @@ -115,4 +115,4 @@ qualifier is `RW` has an RPC accessor associated with it that sets its value: Apart from the RPCs enumerated above, some classes have additional RPCs associated with them. For example, the `VM` class has RPCs for cloning, suspending, starting etc. Such additional RPCs are described explicitly -in the API reference. \ No newline at end of file +in the API reference. diff --git a/ocaml/doc/wire-protocol.md b/ocaml/doc/wire-protocol.md index ddd2b88d851..7a322528aba 100644 --- a/ocaml/doc/wire-protocol.md +++ b/ocaml/doc/wire-protocol.md @@ -51,12 +51,12 @@ These types are mapped onto XML-RPC types in a straight-forward manner: ``` -* for types `k` and `v`, our type `(k -> v) map` maps onto an +* for types `k` and `v`, our type `(k → v) map` maps onto an XML-RPC ``, with the key as the name of the struct. Note that the - `(k -> v) map` type is only valid when `k` is a `string`, `ref`, or + `(k → v) map` type is only valid when `k` is a `string`, `ref`, or `int`, and in each case the keys of the maps are stringified as - above. For example, the `(string -> double) map` containing the mappings - _Mike → 2.3_ and _John → 1.2_ would be represented as: + above. For example, the `(string → double) map` containing the mappings + _Mike → 2.3_ and _John → 1.2_ would be represented as: ```xml @@ -313,4 +313,4 @@ To retrieve all the VM records in a single call: ['OpaqueRef:1', 'OpaqueRef:2', 'OpaqueRef:3', 'OpaqueRef:4' ] >>> records['OpaqueRef:1']['name_label'] 'Red Hat Enterprise Linux 7' -``` \ No newline at end of file +``` diff --git a/ocaml/idl/markdown_backend.ml b/ocaml/idl/markdown_backend.ml index a2dd9617487..bbf0895b81d 100644 --- a/ocaml/idl/markdown_backend.ml +++ b/ocaml/idl/markdown_backend.ml @@ -76,7 +76,7 @@ let rec of_ty_verbatim = function | DateTime -> "datetime" | Enum (name, things) -> name | Set x -> sprintf "%s set" (of_ty_verbatim x) - | Map (a, b) -> sprintf "(%s -> %s) map" (of_ty_verbatim a) (of_ty_verbatim b) + | Map (a, b) -> sprintf "(%s → %s) map" (of_ty_verbatim a) (of_ty_verbatim b) | Ref obj -> obj ^ " ref" | Record obj -> obj ^ " record" @@ -89,7 +89,7 @@ let rec of_ty = function | DateTime -> "datetime" | Enum (name, things) -> escape name | Set x -> (of_ty x) ^ " set" - | Map (a, b) -> "(" ^ (of_ty a) ^ " → " ^ (of_ty b) ^ ") map" + | Map (a, b) -> "(" ^ (of_ty a) ^ " → " ^ (of_ty b) ^ ") map" | Ref obj -> (escape obj) ^ " ref" | Record obj -> (escape obj) ^ " record" @@ -333,7 +333,7 @@ The following type constructors are used: |:-----------------|:-------------------------------------------------------| |_c_ ref |reference to an object of class _c_ | |_t_ set |a set of elements of type _t_ | -|(_a → b_) map|a table mapping values of type _a_ to values of type _b_| +|(_a → b_) map |a table mapping values of type _a_ to values of type _b_| ### Enumeration types @@ -393,8 +393,8 @@ like this: MAP_DUPLICATE_KEY Customer - eSpeil Inc. - eSpeil Incorporated + eSpiel Inc. + eSpiel Incorporated @@ -405,9 +405,9 @@ like this: Note that `ErrorDescription` value is an array of string values. The first element of the array is an error code; the remainder of the array are strings representing error parameters relating to that code. In this case, -the client has attempted to add the mapping _Customer → +the client has attempted to add the mapping _Customer → eSpiel Incorporated_ to a Map, but it already contains the mapping -_Customer → eSpiel Inc._, and so the request has failed. +_Customer → eSpiel Inc._, and so the request has failed. Each possible error code is documented in the following section.