Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning in yard with @param tag

I was trying to document some Ruby code using yardand even though I am doing exactly what is described here or here

# @param [Integer] the number of trials (>= 0)
# @param [Float] success probability in each trial
def initialize(n, p)
  # initialize...
end 

I still get this strange error though

@param tag has unknown parameter name: the
@param tag has unknown parameter name: success

and then the generated html looks wierd. I am calling yard this:

$ yard doc -m markdown

What could I be doing wrong?

like image 987
kmikael Avatar asked Jul 03 '12 13:07

kmikael


1 Answers

doc says @param tag has format

@param [Type] name description

and your lines do not include param names (n and p respectively)

like image 109
keymone Avatar answered Sep 19 '22 12:09

keymone