Merge pull request #441 from serpilliere/fix_tipo

Fix typo
This commit is contained in:
Yuji Kanagawa 2019-04-17 23:43:33 +09:00 committed by GitHub
commit dc2fc80f4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ pub fn build_py_methods(ast: &mut syn::ItemImpl) -> syn::Result<TokenStream> {
} else if ast.generics != Default::default() {
Err(syn::Error::new_spanned(
ast.generics.clone(),
"#[pymethods] can not ve used with lifetime parameters or generics",
"#[pymethods] can not be used with lifetime parameters or generics",
))
} else {
Ok(impl_methods(&ast.self_ty, &mut ast.items))