Skip to content

Commit 613e7dd

Browse files
authored
docs: fix typos in the getting started docs (#154)
1 parent 8cd79f7 commit 613e7dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/typescript/01-getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class ExampleService {
5353
// decorator TypeDI will automatically inject an instance of
5454
// ExampleInjectedService here when the ExampleService class is requested
5555
// from TypeDI.
56-
private injectedService: ExampleInjectedService
56+
public injectedService: ExampleInjectedService
5757
) {}
5858
}
5959

docs/typescript/02-basic-usage-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Container.set(myToken, 'my-secret-value');
123123
Container.set('my-dependency-name-A', InjectedClass);
124124
Container.set('my-dependency-name-B', 'primitive-value');
125125

126-
const injectedClassInstance = Container.get(ExampleClass);
126+
const injectedClassInstance = Container.get(InjectedClass);
127127
// a class without dependencies can be required
128128
const exampleClassInstance = Container.get(ExampleClass);
129129
// a class with dependencies can be required and dependencies will be resolved

0 commit comments

Comments
 (0)