Skip to content

Commit 3869818

Browse files
ericcarrawaytbosch
authored andcommitted
docs(modules): fix typos
closes angular#2914
1 parent abc1580 commit 3869818

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

modules/angular2/docs/core/02_directives.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ CSS Selectors can be combined:
5252

5353
## Directives
5454

55-
The simplest kind of directive is a decorator. Directives are usefull for encapsulating behavior.
55+
The simplest kind of directive is a decorator. Directives are useful for encapsulating behavior.
5656

5757
* Multiple decorators can be placed on a single element.
5858
* Directives do not introduce new evaluation context.
@@ -260,7 +260,7 @@ Injecting other directives into directives follows a similar mechanism as inject
260260

261261
There are five kinds of visibilities:
262262

263-
* (no annotation): Inject dependant directives only if they are on the current element.
263+
* (no annotation): Inject dependent directives only if they are on the current element.
264264
* `@ancestor`: Inject a directive if it is at any element above the current element.
265265
* `@parent`: Inject a directive which is a direct parent of the current element.
266266
* `@child`: Inject a list of direct children which match a given type. (Used with `Query`)
@@ -325,7 +325,7 @@ Assume the following DOM structure for `my_app.html`:
325325

326326
#### Shadow DOM effects on Directive DI
327327

328-
Shadow DOM provides an encapsulation for components, so as a general rule it does not allow directive injections to cross the shadow DOM boundaries. To remedy this, declaritively specify the required component as an injectable.
328+
Shadow DOM provides an encapsulation for components, so as a general rule it does not allow directive injections to cross the shadow DOM boundaries. To remedy this, declaratively specify the required component as an injectable.
329329

330330
```
331331
@Component({

modules/benchpress/docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Benchpress is a framework for e2e performance tests.
44

55
# Why?
66

7-
There are so called "micro benchmarks" that esentially use a stop watch in the browser to measure time
7+
There are so called "micro benchmarks" that essentially use a stop watch in the browser to measure time
88
(e.g. via `performance.now()`). This approach is limited to time, and in some cases memory
99
(Chrome with special flags), as metric. It does not allow to measure:
1010

@@ -80,7 +80,7 @@ index.html:
8080
var container = document.getElementById('container');
8181
var complexHtmlString = '...'; // TODO
8282
83-
function reset() { cotainer.innerHTML = ''; }
83+
function reset() { container.innerHTML = ''; }
8484
8585
function fill() {
8686
container.innerHTML = complexHtmlString;

modules/rtts_assert/README.js.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ assert(value).is(...)
2828
2929
// Custom type assert:
3030
// - i have a custom type
31-
// - adding an assert methos
31+
// - adding an assert methods
3232
assert.define(MyUser, function(value) {
3333
assert(value).is(Type, Type2); // or
3434
assert(value, 'name').is(assert.string);

0 commit comments

Comments
 (0)