forked from TrueCloudLab/frostfs-sdk-go
[nspcc-dev/neofs-node#116] policy: Add comments
Added comments to exported variables and functions, fix typos in comments and extra newlines in code Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
parent
3ef4b2c4cf
commit
0caf8cfd95
4 changed files with 11 additions and 7 deletions
|
@ -54,7 +54,7 @@ func ToJSON(np *netmap.PlacementPolicy) ([]byte, error) {
|
|||
return json.Marshal(p)
|
||||
}
|
||||
|
||||
// ToJSON creates placement policy from JSON.
|
||||
// FromJSON creates placement policy from JSON.
|
||||
func FromJSON(data []byte) (*netmap.PlacementPolicy, error) {
|
||||
p := new(placement)
|
||||
if err := json.Unmarshal(data, p); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue