diff --git a/mesonbuild/minit.py b/mesonbuild/minit.py index 8f64f9bec..abe8104d0 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 9c0c13ed5..89c3c4c76 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,