ClojureScript

doc for referred fn displays alias ns

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: 1.7.145
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    noderepljs
  • Patch:
    Code

Description

Note cljs.user/trim in the doc output:

cljs.user=> (require '[clojure.string :refer [trim]])
nil
cljs.user=> (doc trim)
-------------------------
cljs.user/trim
([s])
  Removes whitespace from both ends of string.

nil

This differs from what you get in Clojure's REPL:

user=> (require '[clojure.string :refer [trim]])
nil
user=> (doc trim)
-------------------------
clojure.string/trim
([s])
  Removes whitespace from both ends of string.
nil

Activity

Hide
Mike Fikes added a comment -

There is an issue in that var resolution for referred vars includes the target rather than the source namespace. The attached patch addresses this issue, but, since it is a deeper issue (rather than a cosmetic doc output issue) this patch warrants heavier vetting.

Show
Mike Fikes added a comment - There is an issue in that var resolution for referred vars includes the target rather than the source namespace. The attached patch addresses this issue, but, since it is a deeper issue (rather than a cosmetic doc output issue) this patch warrants heavier vetting.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: