Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gee_cache 项目里的 geecache_test.go 文件里有个小错误 #56

Open
vvvvjvvvv opened this issue Jun 27, 2022 · 1 comment
Open

Comments

@vvvvjvvvv
Copy link

第 51 行
if view, err := gee.Get("unknown"); err == nil
应该是 err != nil 吧

@mayooot
Copy link

mayooot commented Oct 7, 2022

没有错误吧,这行代码的意思是:获取不存在的key“unknown”,如果异常为空,也就是获取成功了。那么就打印错误。因为这个"unknown"是不存在的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants