Skip to content

Commit

Permalink
Bump crate-ci/typos from 1.14.12 to 1.15.5 (#26)
Browse files Browse the repository at this point in the history
* Bump crate-ci/typos from 1.14.12 to 1.15.5

Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.14.12 to 1.15.5.
- [Release notes](https://github.com/crate-ci/typos/releases)
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md)
- [Commits](crate-ci/typos@v1.14.12...v1.15.5)

---
updated-dependencies:
- dependency-name: crate-ci/typos
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix typos

* Update NotificationCenter.jl

Change variable name from `fnction` to `f`

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hendrik Ranocha <ranocha@users.noreply.github.com>
Co-authored-by: Andrew Winters <andrew.ross.winters@liu.se>
  • Loading branch information
3 people authored Jun 27, 2023
1 parent a33de64 commit eddb174
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/SpellCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
- name: Checkout Actions Repository
uses: actions/checkout@v3
- name: Check spelling
uses: crate-ci/typos@v1.14.12
uses: crate-ci/typos@v1.15.5
2 changes: 1 addition & 1 deletion src/HOHQMesh.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ end

#
# Include interactive mesh functionality for creating, reading, and writing a model for HOHQMesh.
# Note, The visualzation routines are included above in the `__init__` because
# Note, The visualization routines are included above in the `__init__` because
# Makie is required.
#

Expand Down
10 changes: 5 additions & 5 deletions src/Misc/NotificationCenter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ HQMNotificationsON = true


"""
addObserver(observer::Any, note::String, fnction::Any)
addObserver(observer::Any, note::String, f::Any)
fnction is the function to be executed (called) when a
`f` is the function to be executed (called) when a
notification of name `note` is given.
The function called upon notification must have the signature
fnction(observer, sender, args...)
f(observer, sender, args...)
"""
function addObserver(observer::Any, note::String, fnction::Any)
function addObserver(observer::Any, note::String, f::Any)

noteObj = HQMNotificationObject(observer,fnction)
noteObj = HQMNotificationObject(observer,f)
if !haskey(HQMNotificationCenter,note)
HQMNotificationCenter[note] = HQMNotificationObject[]
end
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ include("test_interactive_project.jl")
# Interactive mesh scripts available in examples folder
include("test_examples.jl")

# Interactive mesh project + visualzation test routines
# Interactive mesh project + visualization test routines
include("test_project_with_viz.jl")

# Refinement test routines
Expand Down
4 changes: 2 additions & 2 deletions test/test_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ using Test

@test length(obList) == 2

# Check the outer boundary curve that are not conneted. Throws a warning
# Check the outer boundary curve that are not connected. Throws a warning
@test_logs (:warn, "The boundary curve Outer is not closed. Fix to generate mesh" ) HOHQMesh.modelCurvesAreOK(p)
@test HOHQMesh.modelCurvesAreOK(p) == false

Expand Down Expand Up @@ -114,7 +114,7 @@ using Test

removeInnerBoundaryCurve!(p,"obc2",ib1Name)
@test length(ibList) == 2
# Check the inner boundary curve that are not conneted. Throws a warning
# Check the inner boundary curve that are not connected. Throws a warning
@test_logs (:warn, "The curve obc3 does not meet the previous curve, obc1.") HOHQMesh.modelCurvesAreOK(p)
@test HOHQMesh.modelCurvesAreOK(p) == false

Expand Down

0 comments on commit eddb174

Please sign in to comment.