summaryrefslogtreecommitdiff
path: root/xmake/core/base/singleton.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-09-25 00:33:07 +0800
committerruki <[email protected]>2020-09-25 00:33:07 +0800
commit90af4956738036172984f068502624bbc515cae7 (patch)
tree7cd7177becaf98e676ae8eaa478f042e14505d3a /xmake/core/base/singleton.lua
parent700f08a7bae11c22295f884610f98b7b99eb1790 (diff)
fix trailing white-space
Diffstat (limited to 'xmake/core/base/singleton.lua')
-rw-r--r--xmake/core/base/singleton.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/core/base/singleton.lua b/xmake/core/base/singleton.lua
index 3decf10f3..c8042e77f 100644
--- a/xmake/core/base/singleton.lua
+++ b/xmake/core/base/singleton.lua
@@ -11,7 +11,7 @@
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
---
+--
-- Copyright (C) 2015-2020, TBOOX Open Source Group.
--
-- @author ruki
@@ -23,7 +23,7 @@ local singleton = singleton or {}
-- get a singleton instance and create it if not exists
--
--- e.g.
+-- e.g.
--
-- function get_xxx()
-- return {xxx = 1}
@@ -31,7 +31,7 @@ local singleton = singleton or {}
-- local instance = singleton.get("key", get_xxx)
--
-- Or
---
+--
-- function get_xxx()
--
-- -- get instance
@@ -50,7 +50,7 @@ function singleton.get(key, init)
-- get key
key = tostring(key)
- -- get all instances
+ -- get all instances
local instances = singleton.instances()
-- get singleton instance