Use more common "subtract" instead of obsolete "substract" (#958)

This commit is contained in:
mab 2020-06-30 16:37:33 +02:00 committed by GitHub
parent 2ba417b147
commit 0eb6b0f662
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ app({
view: state =>
h("div", {}, [
h("h1", {}, state),
h("button", { onclick: state => state - 1 }, "substract"),
h("button", { onclick: state => state - 1 }, "subtract"),
h("button", { onclick: state => state + 1 }, "add")
]),
node: document.getElementById("app")

View File

@ -116,7 +116,7 @@ export default (state) => (
}}
>
<h1>{state.count}</h1>
<button class="primary-button" onclick={Down}>substract</button>
<button class="primary-button" onclick={Down}>subtract</button>
<button class="primary-button" onclick={Up}>add</button>
</div>
</div>