Skip to content

Commit

Permalink
fix: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jolexxa committed Jul 28, 2024
1 parent 5db5ff4 commit 772b9d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ Any object you wish to store in a pool must conform to `IPooled` and implement t
A pool can be easily created. Each derived type that you wish to pool can be "registered" with the pool. The pool will create instances of each type registered with it according to the provided capacity.

```csharp
var pool = new Pool();
var pool = new Pool<Shape>();

pool.Register<Cube>(10); // Preallocate 10 cubes.
pool.Register<Sphere>(5); // Preallocate 5 spheres.
Expand Down

0 comments on commit 772b9d6

Please sign in to comment.