book icon indicating copy to clipboard operation
book copied to clipboard

The confusing colon ":" in the end of Chapter 5-3 Method Syntax

Open traffictse opened this issue 3 years ago • 0 comments

  • [√ ] I have checked the latest main branch 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?

traffictse avatar Aug 09 '22 03:08 traffictse