Ushering out strlcpy()
Ushering out strlcpy()
Posted Aug 30, 2022 17:12 UTC (Tue) by tialaramex (subscriber, #21167)In reply to: Ushering out strlcpy() by tialaramex
Parent article: Ushering out strlcpy()
Gah, I should always check these compile before hitting submit.
fn is_healthy(goose: &Self) -> bool { goose.hit_points > 90 }
There is no "self" parameter on is_healthy because it isn't a method, and so the version I wrote above can't work since it refers to a self variable which doesn't exist.