Skip to content

Commit 7c4e7ed

Browse files
committed
Minor fixes
1 parent d8ca9d1 commit 7c4e7ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_posts/2017-03-02-lang-ergonomics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ tracking?
248248

249249
- Context-dependence: in principle, you need to know how the method is resolved,
250250
and then its signature. In practice, the style of `self` borrowing is almost
251-
always implied by the method name (e.g. `push` versus `len`). Notably, this
251+
always implied by the method name (e.g. `push()` versus `len()`). Notably, this
252252
point does *not* apply to function arguments.
253253

254254
**This design also aids learnability, by often just doing "the obvious thing"
@@ -340,7 +340,7 @@ through convention. But while this bit of implicitness helps, the module system
340340
still makes a number of fine distinctions that trip up newcomers and require
341341
redundancy that even old hands can forget.
342342

343-
#### Idea: eliminate the need for `extern crate`, and maybe `mod` too
343+
### Idea: eliminate the need for `extern crate`, and maybe `mod` too
344344

345345
The clearest-cut case is the `extern crate` declaration, which is used to bring
346346
an external crate into scope. The vast majority of Rust projects use Cargo for

0 commit comments

Comments
 (0)