I stumbled over a question (image for <10k users in case the question gets deleted):
This question was closed with this (custom) reason:
I'm voting to close this question as off-topic because StackOverflow is not a documentation search engine.
I agree this probably could've been easily researched without asking an entire question on SO, but I highly doubt the close reason is justified. There is probably a close reason for it, but it mainly seems like it got closed for being a trivial question.
The real reason I'm asking this question is because there are several questions like these. For an instance this, which asks what a specific class is for, this, which asks how to use an attribute, and this, which asks what a keyword means, and this, which asks what a specific return statement does. (Found by searching for [tag] what does do is:q
)
The last one is actually a fantastic example, because the accepted answer actually references the documentation, but the question isn't closed even though it could be googled and answered without Stack Overflow.
When are questions asking about what a function/class does or, for functions, returns on-topic?
This isn't an attempt to call out the close voters of the question, but I'd like to know if closing is the right action to take with these types of questions, and when that's appropriate. I've seen several new questions similar to this one, so if closing is the right thing to do, that'd be nice to know.