On Thu, Oct 18, 2012 at 1:00 PM, Tony Young <[email protected]> wrote:
> I'm not sure where this should be posted so I hope I won't get yelled
> at for putting it here.
>
> Looking at the documentation for f64
> (http://dl.rust-lang.org/doc/0.4/core/f64.html), there isn't any
> mention of the imports from cmath
> (https://github.com/mozilla/rust/blob/master/src/libcore/f64.rs#L5),
> which is confusing when I tried to find where the sin and cos
> functions were.
>
> I'm not sure if this is a fault of incomplete documentation,
> unintuitive behavior on the part of rustdoc or a "feature".

The problem seems to be that core::f64 is importing cmath::c_double::*
and then exporting acos which is defined in the latter module.

I think rustdoc should make this clear in the generated documentation.

Regards,
Alex
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to