From 15797abf3f1580175594c15d152c16b4af3fd1cb Mon Sep 17 00:00:00 2001 From: Marvin Ahlgrimm Date: Mon, 5 Feb 2024 17:26:57 +0100 Subject: [PATCH] Replace .new.new with .new --- docs/docs/caching/reference/stores.md | 4 ++-- docs/versioned_docs/version-0.3/caching/introduction.md | 2 +- docs/versioned_docs/version-0.3/caching/reference/stores.md | 4 ++-- docs/versioned_docs/version-0.4/caching/introduction.md | 2 +- docs/versioned_docs/version-0.4/caching/reference/stores.md | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/docs/caching/reference/stores.md b/docs/docs/caching/reference/stores.md index ec60650d9..cc4e8cb05 100644 --- a/docs/docs/caching/reference/stores.md +++ b/docs/docs/caching/reference/stores.md @@ -16,7 +16,7 @@ For example: ```crystal Marten.configure do |config| - config.cache_store = Marten::Cache::Store::Memory.new.new(expires_in: 24.hours) + config.cache_store = Marten::Cache::Store::Memory.new(expires_in: 24.hours) end ``` @@ -30,7 +30,7 @@ For example: ```crystal Marten.configure do |config| - config.cache_store = Marten::Cache::Store::Null.new.new(expires_in: 24.hours) + config.cache_store = Marten::Cache::Store::Null.new(expires_in: 24.hours) end ``` diff --git a/docs/versioned_docs/version-0.3/caching/introduction.md b/docs/versioned_docs/version-0.3/caching/introduction.md index 04688b663..320fe1598 100644 --- a/docs/versioned_docs/version-0.3/caching/introduction.md +++ b/docs/versioned_docs/version-0.3/caching/introduction.md @@ -16,7 +16,7 @@ For example, the following configuration configures an in-memory cache as the gl ```crystal Marten.configure do |config| - config.cache_store = Marten::Cache::Store::Memory.new.new(expires_in: 24.hours) + config.cache_store = Marten::Cache::Store::Memory.new(expires_in: 24.hours) end ``` diff --git a/docs/versioned_docs/version-0.3/caching/reference/stores.md b/docs/versioned_docs/version-0.3/caching/reference/stores.md index 45c77cd00..516bf488c 100644 --- a/docs/versioned_docs/version-0.3/caching/reference/stores.md +++ b/docs/versioned_docs/version-0.3/caching/reference/stores.md @@ -16,7 +16,7 @@ For example: ```crystal Marten.configure do |config| - config.cache_store = Marten::Cache::Store::Memory.new.new(expires_in: 24.hours) + config.cache_store = Marten::Cache::Store::Memory.new(expires_in: 24.hours) end ``` @@ -30,7 +30,7 @@ For example: ```crystal Marten.configure do |config| - config.cache_store = Marten::Cache::Store::Null.new.new(expires_in: 24.hours) + config.cache_store = Marten::Cache::Store::Null.new(expires_in: 24.hours) end ``` diff --git a/docs/versioned_docs/version-0.4/caching/introduction.md b/docs/versioned_docs/version-0.4/caching/introduction.md index 791aeeeaa..5af74de28 100644 --- a/docs/versioned_docs/version-0.4/caching/introduction.md +++ b/docs/versioned_docs/version-0.4/caching/introduction.md @@ -16,7 +16,7 @@ For example, the following configuration configures an in-memory cache as the gl ```crystal Marten.configure do |config| - config.cache_store = Marten::Cache::Store::Memory.new.new(expires_in: 24.hours) + config.cache_store = Marten::Cache::Store::Memory.new(expires_in: 24.hours) end ``` diff --git a/docs/versioned_docs/version-0.4/caching/reference/stores.md b/docs/versioned_docs/version-0.4/caching/reference/stores.md index 22f3dcf75..75341a924 100644 --- a/docs/versioned_docs/version-0.4/caching/reference/stores.md +++ b/docs/versioned_docs/version-0.4/caching/reference/stores.md @@ -16,7 +16,7 @@ For example: ```crystal Marten.configure do |config| - config.cache_store = Marten::Cache::Store::Memory.new.new(expires_in: 24.hours) + config.cache_store = Marten::Cache::Store::Memory.new(expires_in: 24.hours) end ``` @@ -30,7 +30,7 @@ For example: ```crystal Marten.configure do |config| - config.cache_store = Marten::Cache::Store::Null.new.new(expires_in: 24.hours) + config.cache_store = Marten::Cache::Store::Null.new(expires_in: 24.hours) end ```