JSDoc @return vs. @returns

2,288 views
Skip to first unread message

Lukáš Vlček

unread,
Jan 29, 2014, 3:18:54 AM1/29/14
to closure-lib...@googlegroups.com
Hi,

looking into all code examples on Google [1,2] I can see @return is strictly used instead of @returns which on the other hand seems to be recommended by JSDoc 3 API doc [3].

Is there any disadvantage if I use @returns in Closure code? The point is that IntelliJ IDEA generates JSDoc stubs with @returns by default so I wonder if there is any impact if I forget to change it to @return.

Regards,
Lukas


John Lenz

unread,
Jan 30, 2014, 10:45:30 AM1/30/14
to closure-library
The two are equivalent as far as I know.


--
 
---
You received this message because you are subscribed to the Google Groups "Closure Library Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to closure-library-d...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages