Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error with documentation exemple #6043

Closed
vicuna opened this issue Jun 20, 2013 · 1 comment
Closed

Syntax error with documentation exemple #6043

vicuna opened this issue Jun 20, 2013 · 1 comment
Assignees

Comments

@vicuna
Copy link

vicuna commented Jun 20, 2013

Original bug ID: 6043
Reporter: sdailly
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2015-12-11T18:19:54Z)
Resolution: fixed
Priority: low
Severity: minor
Version: 4.00.1
Category: documentation

Bug description

The first class module exemple give syntax error when tryin to reproduce

http://caml.inria.fr/pub/docs/manual-ocaml-4.00/manual021.html#toc81

Steps to reproduce

$ rlwrap.exe ocaml
OCaml version 4.00.1

module type DEVICE = sig end;;

module type DEVICE = sig end

let devices : (string, module DEVICE) Hashtbl.t = Hashtbl.create 17;;

Characters 23-29:
let devices : (string, module DEVICE) Hashtbl.t = Hashtbl.create 17;;
^^^^^^
Error: Syntax error

Additional information

paren are missing arount « module DEVICE » :

let devices : (string, (module DEVICE)) Hashtbl.t = Hashtbl.create 17;;

val devices : (string, (module DEVICE)) Hashtbl.t =

@vicuna
Copy link
Author

vicuna commented Jun 20, 2013

Comment author: @gasche

In fact, this issue has already been fixed by Damien in commit 12957. You did nothing wrong, though, as the web version of the manual has not been updated (since the OCaml release, I suppose), so there is no way to access the up-to-date version before the upcoming OCaml release -- short of looking at the sources in the SVN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants