book
book copied to clipboard
The confusing colon ":" in the end of Chapter 5-3 Method Syntax
- [√ ] I have checked the latest
mainbranch to see if this has already been fixed - [√ ] I have searched existing issues and pull requests for duplicates
URL to the section(s) of the book with this problem: https://github.com/rust-lang/book/blob/main/src/ch05-03-method-syntax.md
Description of the problem: The sentence "This function is namespaced by the struct: the :: syntax is used for both associated functions and namespaces created by modules." just above the subsection title "Multiple impl Blocks" has a sort of confusing colon ":".
Suggested fix: wondering if the colon ":" next to "the struct" is just a simple colon that is used to introduce an explanation. Is it better to replace it with a period "." for clarity?