Skip to content

Commit

Permalink
Fix @gapattribute docstring (#932)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens authored Aug 29, 2023
1 parent ac02c1a commit 078c25e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,12 @@ the code contains exactly one call of the form `GAP.Globals.Something(X)`,
where `Something` is a GAP attribute such as `Centre` or `IsSolvableGroup`,
and `attr` returns the corresponding attribute value for its argument.
The macro defines three functions `attr`, `hasattr`, and `setattr`, where
The macro defines three functions `attr`, `has_attr`, and `set_attr`, where
`attr` takes an argument of type `T` and returns what the given
method definition says,
`hasattr` takes an argument of type `T` and returns the result of
`has_attr` takes an argument of type `T` and returns the result of
`GAP.Globals.HasSomething(X)` (which is either `true` or `false`),
`setattr` takes an argument of type `T` and an object `obj` and
`set_attr` takes an argument of type `T` and an object `obj` and
calls `GAP.Globals.SetSomething(X, obj)`.
In order to avoid runtime access via `GAP.Globals.Something` etc.,
Expand Down

0 comments on commit 078c25e

Please sign in to comment.