rust-by-practice icon indicating copy to clipboard operation
rust-by-practice copied to clipboard

Add check to <static.md> #2

Open skaunov opened this issue 2 years ago • 2 comments

Currently just making init() return None gives trivial solution.

skaunov avatar Apr 23 '23 04:04 skaunov

I don't understand the meaning here, can you provide more context ?

sunface avatar May 15 '23 04:05 sunface

@sunface , the exercise asks not to change signature of init.

Make it work without changing the function signatures of init

So if the body of init replaced with the single word None the whole thing starts to work. So proposed added line is to hint reader that we don't mock him with a mind twister, and it really should be solved with lifetimes.

skaunov avatar May 15 '23 08:05 skaunov