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

c01/c01_06 #49

Open
utterances-bot opened this issue Aug 6, 2022 · 3 comments
Open

c01/c01_06 #49

utterances-bot opened this issue Aug 6, 2022 · 3 comments

Comments

@utterances-bot
Copy link

1.6 数据类型:字典与布尔类型 — Go编程时光 1.0.0 documentation

https://golang.iswbm.com/c01/c01_06.html

Copy link

//  && 两边的表达式都会执行
fmt.Println( age > 18 && gender == "male")
// gender == "male" 并不会执行
fmt.Println( age < 18 || gender == "male")

这两行注释写反了吧

Copy link

应该是这样
// && 两边的表达式都会执行
fmt.Println( age < 18 && gender == "male")

Copy link

Feanmy commented Feb 20, 2023

// && 两边的表达式都会执行
fmt.Println( age > 18 && gender == "male")
&&右边的不会执行了

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

4 participants