@@ -324,8 +324,8 @@ Expr#Module:Name.Field
324324These expressions return the value of the specified field of the
325325native-record value.
326326
327- When a field from a native-record value is accessed, the native-record
328- definition is **not** consulted.
327+ When a field from a native-record value is accessed, the current
328+ native-record definition is **not** consulted.
329329
330330An access operation fails with a `{badrecord,Expr}` error if:
331331
@@ -371,8 +371,8 @@ Expr#Module:Name{Field1=Expr1, ..., FieldN=ExprN}
371371
372372Field names must be atoms.
373373
374- When a native-record value is updated, its native-record definition is
375- **not** consulted.
374+ When a native-record value is updated, its native-record
375+ definition is **not** consulted.
376376
377377An update operation fails with a `{badrecord,Expr}` error if:
378378
@@ -578,9 +578,7 @@ Native records that can be used as types using the following syntax:
578578
579579```erlang
580580% % local or imported native-record
581- #RecordName (TVar1 , ..., TVarN )
582581#RecordName {TField :: TType , ... }
583- #RecordName (TVar1 , ..., TVarN ){ TField :: TType , ... }
584582% % remote native-record
585583#Module :RecordName (TVar1 , ..., TVarN )
586584```
@@ -604,11 +602,11 @@ Example:
604602 second :: B
605603}.
606604- type int_pair () :: # pair (integer(), integer()).
607- -spec mk_user() -> #user{} .
605+ -spec mk_user() -> #user() .
608606mk_user() ->
609607 #user{id = 1 , name = ~ " Alice" , city = ~ " London" }.
610608
611- - spec mk_user_limited () -> # user {} .
609+ - spec mk_user_limited () -> # user () .
612610mk_user() ->
613611 #user{id = 1 , name = ~ " Alice" , city = ~ " London" }.
614612
0 commit comments