aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/minit.py4
-rw-r--r--mesonbuild/templates/samplefactory.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/minit.py b/mesonbuild/minit.py
index 8f64f9b..abe8104 100644
--- a/mesonbuild/minit.py
+++ b/mesonbuild/minit.py
@@ -30,7 +30,7 @@ from mesonbuild import build, mesonlib, mlog
from mesonbuild.coredata import FORBIDDEN_TARGET_NAMES
from mesonbuild.environment import detect_ninja
from mesonbuild.templates.mesontemplates import create_meson_build
-from mesonbuild.templates.samplefactory import sameple_generator
+from mesonbuild.templates.samplefactory import sample_generator
if T.TYPE_CHECKING:
import argparse
@@ -75,7 +75,7 @@ def create_sample(options: Arguments) -> None:
Based on what arguments are passed we check for a match in language
then check for project type and create new Meson samples project.
'''
- sample_gen = sameple_generator(options)
+ sample_gen = sample_generator(options)
if options.type == DEFAULT_TYPES['EXE'].value:
sample_gen.create_executable()
elif options.type == DEFAULT_TYPES['LIB'].value:
diff --git a/mesonbuild/templates/samplefactory.py b/mesonbuild/templates/samplefactory.py
index 9c0c13e..89c3c4c 100644
--- a/mesonbuild/templates/samplefactory.py
+++ b/mesonbuild/templates/samplefactory.py
@@ -32,7 +32,7 @@ if T.TYPE_CHECKING:
from .sampleimpl import SampleImpl
-def sameple_generator(options: Arguments) -> SampleImpl:
+def sample_generator(options: Arguments) -> SampleImpl:
return {
'c': CProject,
'cpp': CppProject,