Do not use "rule of thumb"

This is extremely minor, but "the rule of thumb" meant that a man could beat his wife and children with a stick roughly the diameter of his thumb. We can easily express the idea without this specific wording.
pull/4719/head
jarvis 6 years ago committed by GitHub
parent aabb23cc34
commit 78e7c5efb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -31,11 +31,11 @@ function addNumber() {
} }
``` ```
A simple rule of thumb: the name of the updated variable must appear on the left hand side of the assignment. For example this... A simple rule: the name of the updated variable must appear on the left hand side of the assignment. For example this...
```js ```js
const foo = obj.foo; const foo = obj.foo;
foo.bar = 'baz'; foo.bar = 'baz';
``` ```
...won't update references to `obj.foo.bar`, unless you follow it up with `obj = obj`. ...won't update references to `obj.foo.bar`, unless you follow it up with `obj = obj`.

Loading…
Cancel
Save