kaist-cp / cs220

269 stars 53 forks source link

[Homework 9 and 10] Can we define helper functions? #175

Closed AlijonovMukhammaddiyor closed 1 year ago

minseongg commented 1 year ago

Yes, you can.

Re-st commented 1 year ago

Hello. I have one question about this issue.

As I defined helper functions,

error: missing documentation for a function --> src/assignments/assignment10.rs:#######:1 157 ############################ { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

note: the lint level is defined here --> src/lib.rs:26:9 | 26 | #![deny(missing_docs)] | ^^^^^^^^^^^^

error: could not compile cs220 due to previous error

pops up. If I silence #![deny(missing_docs)] in lib.rs , theh code passes. But when I upload on gg, the error pops up. Checked the log to find out that 'missing documentation for a function' was the problem.

How can I solve this?

minseongg commented 1 year ago

@Re-st Would you like to refer to this? https://github.com/kaist-cp/cs220/issues/117#issuecomment-1271565980

zzz845zz commented 1 year ago

I closed this issue because the timeline of hw9 and hw10 is passed. Please make a new issue if you have a question.