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

In-REPL documentation for extended Base methods not appearing #13152

Closed
davidagold opened this issue Sep 15, 2015 · 2 comments
Closed

In-REPL documentation for extended Base methods not appearing #13152

davidagold opened this issue Sep 15, 2015 · 2 comments

Comments

@davidagold
Copy link
Contributor

Note the difference between v0.4.0-rc1 and master (at the end):

v0.4.0-rc1:

               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.4.0-rc1 (2015-09-09 16:07 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-apple-darwin13.4.0

julia> module Foos

       type Foo end

       @doc """
       Maps a Foo just for you.
       """ ->
       Base.map(::Foo) = nothing

       end # module Foos
Foos

julia> using Foos

help?> map
search: map map! mapfoldr mapfoldl mapslices mapreduce mapreducedim pmap mmap Mmap mmap_array mmap_bitarray cartesianmap macroexpand promote_shape

  ..  map(f, c...) -> collection

  Transform collection ``c`` by applying ``f`` to each element.
  For multiple collection arguments, apply ``f`` elementwise.

  .. doctest::

     julia> map((x) -> x * 2, [1, 2, 3])
     3-element Array{Int64,1}:
      2
      4
      6

     julia> map(+, [1, 2, 3], [10, 20, 30])
     3-element Array{Int64,1}:
      11
      22
      33

master:

               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0-dev+180 (2015-09-14 20:14 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit dbe775c (0 days old master)
|__/                   |  x86_64-apple-darwin14.4.0

julia> module Foos

       type Foo end

       @doc """
       Maps a Foo just for you.
       """ ->
       Base.map(::Foo) = nothing

       end # module Foos
Foos

julia> using Foos

help?> map
search: map map! mapfoldr mapfoldl mapslices mapreduce mapreducedim pmap mmap Mmap mmap_array mmap_bitarray cartesianmap macroexpand promote_shape

  map(f, c...) -> collection

  Transform collection c by applying f to each element. For multiple collection arguments, apply f elementwise.

  julia> map((x) -> x * 2, [1, 2, 3])
  3-element Array{Int64,1}:
   2
   4
   6

  julia> map(+, [1, 2, 3], [10, 20, 30])
  3-element Array{Int64,1}:
   11
   22
   33

  Maps a Foo just for you.
@MichaelHatherly
Copy link
Member

Dup of #13068, fixed in #13070. It's been backported, could you check the latest 0.4-rc?

@davidagold
Copy link
Contributor Author

The latest 0.4-rc works. Thank you!

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

No branches or pull requests

2 participants